Exemplo n.º 1
0
 /// <summary>
 /// Adds a new <see cref="EdgeToNeighbor"/> instance to the AdjacencyList.
 /// </summary>
 /// <param name="e">The <see cref="EdgeToNeighbor"/> instance to add.</param>
 protected internal virtual void Add(EdgeToNeighbor e)
 {
     base.InnerList.Add(e);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds an edge based on the data in the passed-in EdgeToNeighbor instance.
 /// </summary>
 protected internal virtual void AddDirected(EdgeToNeighbor e)
 {
     neighbors.Add(e);
 }