/// <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); }
/// <inheritdoc/> public int[] GetToPath(int n) { // use the left as the first path return(left.GetToPath(n)); }