GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutForceDirected Class / ElectricalCharge Method
In This Topic
    ElectricalCharge Method
    In This Topic
    Returns the charge of the point representing the GoLayoutForceDirectedNode node. A node L and a node V are acted upon by a force of magnitude (ElectricalCharge(L) * ElectricalCharge(V)) / (GetNodeDistance(L,V) * GetNodeDistance(L,V)). A node L is acted upon by forces in the X and Y directions of magnitude ElectricalFieldX(L.position) * ElectricalCharge(L) and ElectricalFieldY(L.position) * ElectricalCharge(L).
    Syntax
    protected virtual float ElectricalCharge( 
       GoLayoutForceDirectedNode node
    )

    Parameters

    node

    Return Value

    Returns the charge of the node, normally the value of DefaultElectricalCharge, unless the value of GoLayoutForceDirectedNode.Charge had already been set, in which case it just returns that value.
    See Also