Click or drag to resize
Graph Methods

The Graph type exposes the following members.

Methods
  NameDescription
Public methodAddEdge(Edge)
Adds the undirected edge to this graph.
Public methodAddEdge(Int32, Int32)
Adds the undirected edge v-w to this graph.
Public methodAdj
Returns the vertices adjacent to vertex v.
Public methodDegree
Returns the degree of vertex v.
Public methodStatic memberMainTest
Demo test the Graph data type.
Public methodToString
Returns a string representation of this graph.
(Overrides ObjectToString.)
Top
See Also