GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutLayeredDigraph Class / InitializeIndices Method
In This Topic
    InitializeIndices Method
    In This Topic
    Assigns every node in the input network an index number, such that nodes in the same layer will be labeled with consecutive indices in left to right order. All consecutive layout operations will preserve or update the indices. In addition, the indices array is initialized such that indices[layer] indicates the number of nodes in the layer. Finally, the variables minIndexLayer and maxIndexLayer record the layers that correspond to the minimum and maximum nodes in a layer.
    Syntax
    protected virtual void InitializeIndices()
    Remarks
    By default this will just call NaiveInitializeIndices, DepthFirstOutInitializeIndices, or DepthFirstInInitializeIndices, as appropriate given the value of InitializeOption. This method must not change the layer of any existing node, nor add or remove any layers.
    See Also