GoXam for WPF v3
CountBends Method
Northwoods.GoXam.Layout Namespace > LayeredDigraphLayout Class : 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
protected virtual double CountBends( 
   bool weighted
)

Parameters

weighted

Return Value

Returns the total number of bends in the network.
See Also

Reference

LayeredDigraphLayout Class
LayeredDigraphLayout Members