Exemplo n.º 1
0
 /// <summary>
 ///     Connects two vertices one to another.
 /// </summary>
 /// <param name="v1">first to connect</param>
 /// <param name="v2">second to connect</param>
 private static void Connect(AdjencyListVertex <T> v1, AdjencyListVertex <T> v2)
 {
     v1.vertices.Add(v2);
     v2.vertices.Add(v1);
 }
Exemplo n.º 2
0
 public SimplestListGraph(AdjencyListVertex <T> root)
 {
     Add(root);
     this._root = root;
 }