Ejemplo n.º 1
0
 /// <inheritdoc/>
 public int[] GetToPath(int n)
 {
     int[] path = parent.GetToPath(n);
     // for all paths from the parent set vertex at the correct index (given by distance)
     path[parentObject.distTo[v]] = v;
     return(path);
 }
Ejemplo n.º 2
0
 /// <inheritdoc/>
 public int[] GetToPath(int n)
 {
     // use the left as the first path
     return(left.GetToPath(n));
 }