Click or drag to resize

Graph Class

Base implementation of the IGraph interface, using the Vertex class for all its vertices
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.Generic.GraphGraph

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 Graph : IGraph

The Graph type exposes the following members.

Constructors
  NameDescription
Public methodGraph
Create a new empty graph.
Public methodGraph(Int32)
Create new graph with the specified number of vertices allocated.
Top
Properties
  NameDescription
Public propertyVertices
Vertices in graph
Top
Methods
  NameDescription
Public methodAddEdge(Int32, Int32)
Add edge between two vertices in graph. Vertices must already be part of graph
Public methodAddEdge(Vertex, Vertex)
Add edge between from and to vertices
Public methodAddEdge(Int32, Int32, Double)
Add edge between two vertices in graph, with specified weight. Vertices must already be part of graph
Public methodAddVertex
Add vertex to graph, its index is the position in the list of vertices
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
See Also