FB3Group BKB |
HomeService and SupportManual
|
||||||
| |||||||
Layout
Tutorial Exercise 1.2: Starting the Graph Layout Algorithm
After successfully loading the graph "graph_example.udg" from
the "samples/graphs" directory of the uDraw(Graph) distribution,
the visualization appears in the graph area of the
As you can see on the screen, all graph nodes are automatically placed on horizontal levels so all (directed) edges between two nodes are pointing downwards. This is called a hierarchical visualization of a directed graph. Other styles of graph layout are currently not supported by uDraw(Graph). Except for assigning nodes to levels, the graph layout algorithm is not used directly after loading a graph. This is done to display it as soon as possible. By looking at the graph visualization, you can see that the layout is not as good as it can be. For example, several edges cross each other, which makes the layout confusing and somehow unattractive. You can see the total number of edge crossings of the current graph layout by opening a statistic window with menu In uDraw(Graph), a graph is drawn top-down by default, so edges are usually pointing downwards. You can choose one of the other three layout orientations (upward, to the left or to the right) with menu
End of Exercise 1.2.
|
|||||||
|
|||||||