GoXam for WPF v3
ArrangeConnectedGraphs Method
Northwoods.GoXam.Layout Namespace > ForceDirectedLayout Class : ArrangeConnectedGraphs Method
an IEnumerator iterating over a number of ForceDirectedNetwork, each containing a connected graph; this is the result of calling Northwoods.GoXam.Layout.GenericNetwork`3.SplitIntoSubNetworks``1
a ForceDirectedNetwork containing only unconnected individual nodes
During a clustered layout, position each separate graph network so that they do not overlap each other.
Syntax
protected virtual void ArrangeConnectedGraphs( 
   IEnumerator<ForceDirectedNetwork> subnets,
   ForceDirectedNetwork singletons
)

Parameters

subnets
an IEnumerator iterating over a number of ForceDirectedNetwork, each containing a connected graph; this is the result of calling Northwoods.GoXam.Layout.GenericNetwork`3.SplitIntoSubNetworks``1
singletons
a ForceDirectedNetwork containing only unconnected individual nodes
Remarks

There may be separate component graphs (without any links between them) within the original network. The subnets enumerator will iterate over a number of ForceDirectedNetworks, each containing a connected (sub)graph. If the original network is connected, i.e. if there is at least one path of undirected links from each node in the original Network to every other node, then there will be only a single ForceDirectedNetwork for the enumerator, and the singletons network will be empty.

This method places each separately-laid-out graph in different non-overlapping locations. By default this ignores IsFixed, because it may move "fixed" nodes to ensure disconnected subgraphs do not overlap.

See Also

Reference

ForceDirectedLayout Class
ForceDirectedLayout Members