Ejemplo n.º 1
0
 public void UpdateAdjacentNode(int index, string name = "", Vertex vert = null, float distance = 0)
 {
     adjacent[index]            = vert;
     adjacentInformation[index] = new AdjacentVertex {
         distanceToNode = distance, vertex = vert, name = name
     };
 }
Ejemplo n.º 2
0
 public void AddAdjacentNode(AdjacentVertex adjacentVertex)
 {
     if (!adjacentInformation.Contains(adjacentVertex) && !adjacent.Contains(adjacentVertex.vertex))
     {
         adjacent.Add(adjacentVertex.vertex);
         adjacentInformation.Add((adjacentVertex));
     }
 }