Digraph Methods |
The Digraph type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddEdge(Edge) |
Adds the undirected edge to this graph. |
![]() | AddEdge(Int32, Int32) |
Adds the directed edge v->w to this digraph. |
![]() | Adj |
Returns the vertices adjacent from vertex v in this digraph. |
![]() | Indegree |
Returns the number of directed edges incident to vertex v.
This is known as the Indegree of vertex v. |
![]() ![]() | MainTest |
Demo test the Digraph data type. |
![]() | Outdegree |
Returns the number of directed edges incident from vertex v.
This is known as the Outdegree of vertex v. |
![]() | Reverse |
Returns the reverse of the digraph. |
![]() | ToString |
Returns a string representation of the graph. (Overrides ObjectToString.) |