![]() | AdjacencyListWeightedDirectedGraphT Class |
Namespace: Slash.Collections.Graphs
public class AdjacencyListWeightedDirectedGraph<T> : IWeightedGraph<T> where T : IGraphVertex
The AdjacencyListWeightedDirectedGraphT type exposes the following members.
Name | Description | |
---|---|---|
![]() | AdjacencyListWeightedDirectedGraphT |
Default constructor for this implementation of
directed graphs. Takes an array of vertices
as parameter, which should be the set of vertices
of this graph.
Initially there are no edges.
|
Name | Description | |
---|---|---|
![]() | EdgeCount |
Number of edges between the vertices of this graph.
|
![]() | Edges |
Edges between the vertices of this graph.
|
![]() | EdgeWeights |
Weights of the edges between the vertices of this graph.
|
![]() | VertexCount |
Number of vertices of this graph.
|
![]() | Vertices |
Vertices of this graph.
|
Name | Description | |
---|---|---|
![]() | AddEdges |
Adds two edges between two vertices in this graph in O(1),
weighted with the given value.
|
![]() | AddSingleEdge |
Adds one edge between two vertices in this graph in O(1),
weighted with the given value.
|
![]() | Degree |
Returns the degree of the given vertex,
in other words the number of adjacent vertices, in O(1).
|
![]() | GetEdgeWeight |
Gets the weight of the edge between the specified vertices in O(n),
where n is the number of adjacent vertices of the first one.
|
![]() | HasEdge |
Checks if there is an edge between two vertices of this
graph in O(n), where n is the number of adjacent vertices
of the first one.
|
![]() | ListOfAdjacentVertices |
Returns a list containing the adjacent
vertices of a given vertex in this graph in O(1).
|