Graph Methods |
The Graph type exposes the following members.
Name | Description | |
---|---|---|
AddEdge(Edge) |
Adds the undirected edge to this graph. | |
AddEdge(Int32, Int32) |
Adds the undirected edge v-w to this graph. | |
Adj |
Returns the vertices adjacent to vertex v. | |
Degree |
Returns the degree of vertex v. | |
MainTest |
Demo test the Graph data type. | |
ToString |
Returns a string representation of this graph. (Overrides ObjectToString.) |