EdgeWeightedGraph Methods |
The EdgeWeightedGraph type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddEdge |
Adds the undirected edge e to this edge-weighted graph. |
![]() | Adj |
Returns the edges incident on vertex v. |
![]() | Degree |
Returns the degree of vertex v. |
![]() | Edges |
Returns all edges in this edge-weighted graph.
To iterate over the edges in this edge-weighted graph, use foreach notation:
foreach (Edge e in G.Edges()). |
![]() ![]() | MainTest | Demo test the EdgeWeightedGraph data type. |
![]() | ToString |
Returns a string representation of the edge-weighted graph.
This method takes time proportional to E + V. (Overrides ObjectToString.) |