Craig's Utility Library  4.0 Beta
Utilities.DataTypes.Vertex< T > Class Template Reference

Vertex within the graph More...

Public Member Functions

 Vertex (T data, Graph< T > graph)
 Initializes a new instance of the Vertex<T> class. More...
 
Edge< T > AddOutgoingEdge (Vertex< T > sink)
 Adds an outgoing edge to the vertex specified More...
 
Vertex< T > Remove ()
 Removes all edges from this vertex and removes it from the graph. More...
 
Vertex< T > RemoveEdge (Edge< T > edge)
 Removes the edge. More...
 

Properties

Data [get, set]
 Gets or sets the data. More...
 
List< Edge< T > > IncomingEdges [get]
 Gets the incoming edges. More...
 
List< Edge< T > > OutgoingEdges [get]
 Gets the outgoing edges. More...
 

Detailed Description

Vertex within the graph

Template Parameters
TData type saved in the vertex

Definition at line 153 of file Graph.cs.

Constructor & Destructor Documentation

Utilities.DataTypes.Vertex< T >.Vertex ( data,
Graph< T >  graph 
)

Initializes a new instance of the Vertex<T> class.

Parameters
dataThe data.
graphThe graph.

Definition at line 160 of file Graph.cs.

Member Function Documentation

Edge<T> Utilities.DataTypes.Vertex< T >.AddOutgoingEdge ( Vertex< T >  sink)

Adds an outgoing edge to the vertex specified

Parameters
sinkThe sink.
Returns
The new edge

Definition at line 197 of file Graph.cs.

Vertex<T> Utilities.DataTypes.Vertex< T >.Remove ( )

Removes all edges from this vertex and removes it from the graph.

Returns
This

Definition at line 209 of file Graph.cs.

Vertex<T> Utilities.DataTypes.Vertex< T >.RemoveEdge ( Edge< T >  edge)

Removes the edge.

Parameters
edgeThe edge.
Returns
This

Definition at line 224 of file Graph.cs.

Property Documentation

T Utilities.DataTypes.Vertex< T >.Data
getset

Gets or sets the data.

The data.

Definition at line 172 of file Graph.cs.

List<Edge<T> > Utilities.DataTypes.Vertex< T >.IncomingEdges
get

Gets the incoming edges.

The incoming edges.

Definition at line 178 of file Graph.cs.

List<Edge<T> > Utilities.DataTypes.Vertex< T >.OutgoingEdges
get

Gets the outgoing edges.

The outgoing edges.

Definition at line 184 of file Graph.cs.


The documentation for this class was generated from the following file: