Click or drag to resize
AdjacencyListWeightedDirectedGraphT Methods

The AdjacencyListWeightedDirectedGraphT generic type exposes the following members.

Methods
  NameDescription
Public methodAddEdges
Adds two edges between two vertices in this graph in O(1), weighted with the given value.
Public methodAddSingleEdge
Adds one edge between two vertices in this graph in O(1), weighted with the given value.
Public methodDegree
Returns the degree of the given vertex, in other words the number of adjacent vertices, in O(1).
Public methodGetEdgeWeight
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.
Public methodHasEdge
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.
Public methodListOfAdjacentVertices
Returns a list containing the adjacent vertices of a given vertex in this graph in O(1).
Top
See Also