Northwoods.Go.Layout Assembly > Northwoods.Go.Layout Namespace > GoLayoutLayeredDigraph Class : MedianBarycenterCrossingReduction Method |
direction == 0 -- use unfixedLayer - 1 and unfixedLayer + 1
direction > 0 -- use unfixedLayer - 1 (sweeping away from layer 0)
direction < 0 -- use unfixedLayer + 1 (sweepeing towards layer 0)
The idea is to calculate the median and barycenter for each node in the unfixedLayer, and to sort the nodes in the unfixedLayer by their median and barycenter values. Returns true if some change was made to the layer.'Declaration Protected Overridable Function MedianBarycenterCrossingReduction( _ ByVal unfixedLayer As Integer, _ ByVal direction As Integer _ ) As Boolean
protected virtual bool MedianBarycenterCrossingReduction( int unfixedLayer, int direction )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2