GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutForceDirected Class / SpringLength Method
In This Topic
    SpringLength Method
    In This Topic
    Returns the length of the spring representing the GoLayoutForceDirectedLink link. The to and from nodes of a link L are acted upon by a force of magnitude SpringStiffness(L) * (GetNodeDistance(L.from, L.to) - SpringLength(L)).
    Syntax
    protected virtual float SpringLength( 
       GoLayoutForceDirectedLink link
    )

    Parameters

    link

    Return Value

    Returns the length of the spring representing link, normally the value of DefaultSpringLength, unless the value of GoLayoutForceDirectedLink.Length had already been set, in which case it just returns that value.
    Remarks
    If your nodes are large, you may need to increase this value, so that many nodes aren't forced to be packed in close to each other.
    See Also