GoDiagram Win Reference
MedianBarycenterCrossingReduction Method

Reorders nodes within the unfixedLayer to reduce the number of link crossings between the unfixedLayer and its adjacent layers. The direction argument indicates which of the adjacent layers should be taken into consideration when reducing the number of crossings. direction == 0 -- use unfixedLayer - 1 and unfixedLayer + 1direction > 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.
Syntax
'Declaration
 
Protected Overridable Function MedianBarycenterCrossingReduction( _
   ByVal unfixedLayer As Integer, _
   ByVal direction As Integer _
) As Boolean
protected virtual bool MedianBarycenterCrossingReduction( 
   int unfixedLayer,
   int direction
)

Parameters

unfixedLayer
direction

Return Value

Returns true if some change was made to the layer and false otherwise.
Requirements

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

See Also

Reference

GoLayoutLayeredDigraph Class
GoLayoutLayeredDigraph Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback