reduceCrossings method

void reduceCrossings()

(undocumented) Reorders nodes within layers to reduce the total number of link crossings in the network.

There are many, many possible implementations of this function. Basically, some iteration of MedianBarycenterCrossingReduction and AdjacentExchangeCrossingReductionBendStraighten sweeping back and forth over the layers is needed. The default implementation has performed favorably on a large number of networks, but other options are available.

Implementation

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