GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutLayeredDigraph Class / LinkStraightenWeight Method
In This Topic
    LinkStraightenWeight Method
    In This Topic
    The function LinkStraightenWeight returns the weight of the link represented by the GoLayoutLayeredDigraphLink link. This weight is used by the straightening methods to give priority straightening to those links with higher weights. The default implementation gives links between two "real" nodes a weight of 1, links between a "real" node and an "artifical" node a weight of 4, and links between two "artificial" nodes a weight of 8. This function can be overridden to provide "fine-tuning" of the layout.
    Syntax
    protected virtual float LinkStraightenWeight( 
       GoLayoutLayeredDigraphLink link
    )

    Parameters

    link

    Return Value

    Returns the weight of the link represented by link
    See Also