Implements a multi-level graph layout algorithm.
Namespace: MindFusion.Diagramming.Wpf.Layout
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public class CompositeLayout : Layout |
Visual Basic Copy Code |
---|
Public Class CompositeLayout |
CompositeLayout partitions the diagram into several subgraphs and applies the algorithm specified via the SubgraphLayout property on each part. If the part is a tree, it is arranged using the algorithm specified via the SubtreeLayout property, which is set to a radial TreeLayout instance by default. Finally the algorithm specified via MasterLayout is applied on the graph that represents the overall partition. By running the polynomial-complexity layout algorithms on small subgraphs, CompositeLayout is able to process a large graph much faster than if a layout algorithm is applied on the whole graph.
CompositeLayout can run on custom partitions specified as lists of nodes, or automatically partition the diagram via two automatic methods based on graph connectivity and graph path lengths. Set the PartitionMethod and CustomPartition properties to specify how the diagram should be partitioned.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
MindFusion.Diagramming.Wpf.Layout.Layout
MindFusion.Diagramming.Wpf.Layout.CompositeLayout