Runner's High

Represents a directed graph. More...
Public Member Functions  
DirectedGraph ()  
Creates a new graph instance. More...  
void  Add (T data) 
Adds a vertex to the graph. More...  
void  Remove (T node) 
Remvoes a vertex from the graph. More...  
void  Connect (T fromNode, T toNode) 
Creates a directed edge between two vertices. More...  
void  Disconnect (T fromNode, T toNode) 
Disconnects a directed edge between two vertices. More...  
List< T >  GetAll (T node) 
Represents a directed graph.
T 
DirectedGraph< T >.DirectedGraph  (  ) 
Creates a new graph instance.
void DirectedGraph< T >.Add  (  T  data  ) 
Adds a vertex to the graph.
data  The data to add as a vertex. 
void DirectedGraph< T >.Connect  (  T  fromNode, 
T  toNode  
) 
Creates a directed edge between two vertices.
fromNode  The origin vertex of the edge. 
toNode  The destiny vertex of the edge. 
void DirectedGraph< T >.Disconnect  (  T  fromNode, 
T  toNode  
) 
Disconnects a directed edge between two vertices.
fromNode  The origin vertex of the edge. 
toNode  The destiny vertex of the edge. 
List<T> DirectedGraph< T >.GetAll  (  T  node  ) 
node  The node whose connections should be queried. 
node
is connected to (not from!)void DirectedGraph< T >.Remove  (  T  node  ) 
Remvoes a vertex from the graph.
node  The vertex to remove. 