GoDiagram Win Reference
CountBends Method

Returns the total number of bends in the network. The "bend" between a node U and a node V connected by a link L is calcluated by abs((U.column + L.portFromColOffset) - (V.column + L.portToColOffset)) The "weighted bend" between a node U and a node V connected by link L is calculated by abs((U.column + L.portFromColOffset) - (V.column + L.portToColOffset)) * LinkStraightenWeight(L) The LinkStraightenWeight attempts to give higher priority to links between "artificial" nodes; i.e., long links in the final layout will be straighter.
Syntax
'Declaration
 
Protected Overridable Function CountBends( _
   ByVal weighted As Boolean _
) As Single
protected virtual float CountBends( 
   bool weighted
)

Parameters

weighted

Return Value

Returns the total number of bends in the network.
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