Click or drag to resize
Digraph Methods

The Digraph type exposes the following members.

Methods
  NameDescription
Public methodAddEdge(Edge)
Adds the undirected edge to this graph.
Public methodAddEdge(Int32, Int32)
Adds the directed edge v->w to this digraph.
Public methodAdj
Returns the vertices adjacent from vertex v in this digraph.
Public methodIndegree
Returns the number of directed edges incident to vertex v. This is known as the Indegree of vertex v.
Public methodStatic memberMainTest
Demo test the Digraph data type.
Public methodOutdegree
Returns the number of directed edges incident from vertex v. This is known as the Outdegree of vertex v.
Public methodReverse
Returns the reverse of the digraph.
Public methodToString
Returns a string representation of the graph.
(Overrides ObjectToString.)
Top
See Also