Implements the basic functionality common to both directed and undirected graphs.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public abstract class Graph : IDisposable
Public MustInherit Class Graph _ Implements IDisposable
public ref class Graph abstract : IDisposable
Members
All Members | Constructors | Methods | Properties | Fields | Events |
Icon | Member | Description |
---|---|---|
Graph(IGraphFactory) |
Initializes the graph using an instance of IGraphFactory.
| |
AddEdge(Edge) |
Adds an edge to the graph.
| |
AddVertex(Vertex) |
Adds a vertex to the graph.
| |
Description |
Gets or sets the desciption of the graph.
| |
Dispose()()() |
Disposes the graph.
| |
EdgeAdded |
Occurs when an edge is added to the graph.
| |
EdgeCount |
Gets the number of edges currently on the graph.
| |
EdgeLabels |
Gets or sets a boolean value indicating whether or not to regard edge labels.
| |
EdgeRemoved |
Occurs when an edge is removed from the graph.
| |
Equals(Object) |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetAdjacentVertices(Vertex) |
Retrieves all vertices adjacent to a specifiv vertex
| |
GetAllEdges()()() |
Retrieves all edges belonging to the graph.
| |
GetEdgesFrom(Vertex) |
Retrieves all edges starting from a specific vertex
| |
GetEdgesTo(Vertex) |
Retrieves all edges ending at a specific vertex
| |
GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
gf |
The graph factory used by this graph instance.
| |
Item[([(Int32])]) |
Gets a specific vertex by its index.
| |
Item[([(Vertex, Vertex])]) |
Gets a specific edge by its two ends.
| |
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
OnEdgeAdded(EdgeEventArgs) |
This method supports the Flexivert infrastructure and is not intended to be used directly from your code.
| |
OnEdgeRemoved(EdgeEventArgs) |
This method supports the Flexivert infrastructure and is not intended to be used directly from your code.
| |
OnVertexAdded(VertexEventArgs) |
This method supports the Flexivert infrastructure and is not intended to be used directly from your code.
| |
OnVertexRemoved(VertexEventArgs) |
This method supports the Flexivert infrastructure and is not intended to be used directly from your code.
| |
RemoveEdge(Vertex, Vertex) |
Removes an edge from the graph, identified by its two ends.
| |
RemoveVertex(Vertex) |
Removes a vertex from the graph.
| |
ToString()()() |
Returns a String that represents the current Object.
(Inherited from Object.) | |
Type |
Gets a member of GraphTypes, indicating the type of the graph.
| |
VertexAdded |
Occurs when a new vertex is added to the graph.
| |
VertexCount |
Gets the number of vertices currently on the graph.
| |
VertexLabels |
Gets or sets a boolean value indicating whether or not to regard vertex labels.
| |
VertexRemoved |
Occurs when a vertex is removed from the graph.
|
Inheritance Hierarchy
Object | ||
Graph | ||
DirectedGraph | ||
UndirectedGraph |