Function PrintPathInOrder(const std::vector<Node>&, const Node&, const Node&, std::vector<std::vector<int>>&)

Function Documentation

void PrintPathInOrder(const std::vector<Node> &path_vector, const Node &start, const Node &goal, std::vector<std::vector<int>> &grid)

Prints the grid passed, highlighting the path taken, when the vector is the path taken in order.

Return
void
Parameters
  • path_vector: the path vector
  • start: start node
  • goal: goal node
  • grid: Modify this grid