<< Click to Display Table of Contents >> Navigation: Building blocks of QGeNIe > Visual appearance, layout, and navigation > Graph layout functions |
While it is not very likely, it is possible that a model constructed in the Graph View becomes too messy. For such cases, QGeNIe supplies functions that arrange nodes within the Graph View automatically using two graph layout algorithms: Spring Embedder and Parent Ordering. Layout algorithms are computationally complex and their output may be far from perfect from the point of view of a human user. It is generally a good idea to treat their output as a starting point for manual arrangement of nodes.
Clicking on the Graph Layout/Spring Embedder opens the following dialog:
Ideal arc length specifies the ideal distance (in pixels) between two interconnected nodes. Please note that not all arcs will be of this length, the algorithm may modify this length so as to reduce overlaps.
Iterations specifies the number of iterations for the layout algorithm. Reducing this number, especially for very large networks, will translate directly to shorter execution time.
Randomize positions at startup, if checked, causes node positions to be randomized before running the layout algorithm. If it is not checked, the algorithm receives the original node positions.
Top to Bottom: This places the nodes in the model in the top to bottom on the graph view.
Left to Right: This places the nodes in the model from left to right on the graph view.
Spacing: This specifies the distance between nodes.