Core/CafeLib.Core.Collections.DirectedGraph/Graph.cs
/// <summary>
/// Adds a vertex to the graph.
/// </summary>
/// <param name="vertex">vertex to be added to the graph</param>
Adds a vertex to the graph.
Adds a vertex to the graph .
public void Add(IVertex vertex)
	    {
            _vertices.Add((Vertex<T>)vertex);
            if (_vertices.Count == 1)
                Origin = vertex;
	    }
public void Add ( IVertex vertex ) { _vertices . Add ( ( Vertex < T > ) vertex ) ; if ( _vertices . Count == 1 ) Origin = vertex ; }
Adds a vertex to the graph.
Adds a vertex to the graph .
vertex
IVertex
vertex to be added to the graph
vertex to be added to the graph