Hi All, I am working on creating intervals in a binary tree. I have created some code to display binary trees to assist me with debugging etc... using the graphviz library of eclipse. My problem is it is not clear how to display the tree correctly. For example: G=(graph with [size:3, nodes:[](1,2,3), adj:[]([e(1,2,1), e(2,3,1)],[])]), graphviz:(view_graph(G)). This just shows the nodes like so: 1 2 3 Instead of 1 2 3 Which is how it should look. This will show a binary tree correctly: G=(graph with [size:5, nodes:[](1,2,3,4,5), adj:[]([e(1,2,1), e(1,3,1), e(3,5,1), e(3,4,1)],[])]), graphviz:(view_graph(G)). Anyway, I am sure it is an easy problem to solve just wondering if anyone knows a quick fix. -TimReceived on Tue Jan 08 2008 - 19:19:42 CET
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST