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

    Parameters

    link

    Return Value

    Returns the stiffness of the spring representing link, normally the value of DefaultSpringStiffness, unless the value of GoLayoutForceDirectedLink.Stiffness had already been set, in which case it just returns that value.
    Remarks
    Very small positive numbers are normal. Values larger than that tend to cause "jittery" behavior that makes it hard or impossible to settle down, since no stable state can be found.
    See Also