Graph Class

Base implementation of the IGraph interface, using the Vertex class for all its vertices

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 Graph : IGraph
Inheritance
Object    Graph
Implements
IGraph

Constructors

Graph Create a new empty graph.
Graph(Int32) Create new graph with the specified number of vertices allocated.

Properties

Vertices Vertices in graph

Methods

AddEdge(Int32, Int32) Add edge between two vertices in graph. Vertices must already be part of graph
AddEdge(Vertex, Vertex) Add edge between from and to vertices
AddEdge(Int32, Int32, Double) Add edge between two vertices in graph, with specified weight. Vertices must already be part of graph
AddVertex Add vertex to graph, its index is the position in the list of vertices
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)

See Also