Click or drag to resize

Vertex Class

Vertex/node in a graph
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.Generic.GraphVertex

Namespace:  DHI.Mike1D.Generic.Graph
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class Vertex : IVertex

The Vertex type exposes the following members.

Constructors
  NameDescription
Public methodVertex
Initializes a new instance of the Vertex class
Top
Properties
  NameDescription
Public propertyEdges
List of edges connected to vertex
Public propertyIndex
Index of this vertex in the list of vertices in the graph.
Top
Methods
  NameDescription
Public methodAddEdgeTo(Vertex)
Add edge from this vertex to toVertex
Public methodAddEdgeTo(Vertex, Double)
Add edge from this vertex to toVertex with provided weight
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodDegree
Returns the degree of the vertex, i.e. the number of edges connected to this vertex
(Defined by GraphExtensions.)
Top
See Also