Single Cycle Graph Layout
In This Topic
The the single cycle layout is represented by the NSingleCycleLayout class. The single cycle layout layouts all graph vertices on a single circle, trying to minimize the number of edge crossings. The most important properties are:
- AspectRatio - determines the aspect (width/height) ratio of the layout. By default set to 1 which layouts the nodes in a circle. A value different from 1 will make the layout order the nodes in an ellipse.
- AutoSizeRings - if set to true the RingRadius property is automatically calculated to have such value that the total area of the drawing is minimized and there is no node overlapping.
- RingRadius - determines the size of the radius of the imaginary circle where nodes are placed. This value is automatically determined if the AutoSizeRings property is set to true.
The following image is an example of the layout output:
Related Examples
Windows Forms: Layouts - Single Cycle Layout
Web Forms: Layouts - Single Cycle Layout
See Also