initializeIndices method

void initializeIndices()

(undocumented) 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 indiceslayer 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. 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.

Implementation

void initializeIndices() {
  _i4.callMethod(
    this,
    'initializeIndices',
    [],
  );
}