GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutGenericNetwork<N,L,Y> Class / SplitIntoSubNetworks<G> Method
In This Topic
    SplitIntoSubNetworks<G> Method
    In This Topic
    Modify this network by splitting it up into separate subnetworks, each of which has all of its nodes connected to each other, but not to any nodes in any other subnetworks.
    Syntax
    public IEnumerator<G> SplitIntoSubNetworks<G>()
    where G: new(), GoLayoutGenericNetwork<N,L,Y>

    Type Parameters

    G

    Return Value

    An IEnumerator of networks, sorted in order of decreasing NodeCount.
    Remarks
    This method will first delete from this network all artifical nodes and all links that do not connect two different nodes. Afterwards, this original network may be empty or may contain all of the singleton GoLayoutGenericNetwork.Node<N,L,Y>s, each of which had no GoLayoutGenericNetwork.Link<N,L,Y>s connecting it to any other nodes.
    See Also