GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutLayeredDigraph Class / AssignLayers Method
In This Topic
    AssignLayers Method
    In This Topic
    Assigns every node in the input network to a layer. The layering satisfies the following: if L is a link from node U to node V, then U.layer > V.layer; further, U.layer - V.layer >= LinkMinLength(L). This method can be overridden to customize how nodes are assigned layers.
    Syntax
    protected virtual void AssignLayers()
    Remarks
    By default this just calls LongestPathSinkLayering, LongestPathSourceLayering, or OptimalLinkLengthLayering as appropriate given the LayeringOption.
    See Also