Class ForceDirectedVertex

GoDiagram®
v10.0.8
by Northwoods Software®

This holds ForceDirectedLayout-specific information about Nodes.

Inheritance
ForceDirectedVertex
Namespace: Northwoods.Go.Layouts
Assembly: Northwoods.GoDiagram.WinForms.ForceDirectedLayout.dll
Syntax
public class ForceDirectedVertex : Network<ForceDirectedVertex, ForceDirectedEdge, ForceDirectedLayout>.Vertex
Remarks

This class inherits from Network<V, E, Y>.Vertex.

Constructors

ForceDirectedVertex(ForceDirectedNetwork)

This constructs a vertex that does not know about any Node and sets its network.

Declaration
public ForceDirectedVertex(ForceDirectedNetwork network)
Parameters
Type Name Description
ForceDirectedNetwork network

Properties

Charge

Gets or sets the electrical charge for this vertex.

Declaration
public double Charge { get; set; }
Property Value
Type Description
double
Remarks

The default value is NaN.

ForceX

Gets or sets the cumulative force on the vertex in the X direction.

Declaration
public double ForceX { get; set; }
Property Value
Type Description
double
Remarks

The default value is zero.

ForceY

Gets or sets the cumulative force on the vertex in the Y direction.

Declaration
public double ForceY { get; set; }
Property Value
Type Description
double
Remarks

The default value is zero.

IsFixed

Gets or sets whether the vertex may be moved by any forces.

Declaration
public bool IsFixed { get; set; }
Property Value
Type Description
bool
Remarks

The default value is false.

Mass

Gets or sets the gravitational mass for this vertex.

Declaration
public double Mass { get; set; }
Property Value
Type Description
double
Remarks

The default value is NaN.