Vertex Class

Vertex/node in a graph

Definition

Namespace: DHI.Mike1D.Generic.Graph
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class Vertex : IVertex
Inheritance
Object    Vertex
Implements
IVertex

Constructors

VertexInitializes a new instance of the Vertex class

Properties

Edges List of edges connected to vertex
Index Index of this vertex in the list of vertices in the graph.

Methods

AddEdgeTo(Vertex) Add edge from this vertex to toVertex
AddEdgeTo(Vertex, Double) Add edge from this vertex to toVertex with provided weight
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Extension Methods

Degree Returns the degree of the vertex, i.e. the number of edges connected to this vertex
(Defined by GraphExtensions)

See Also