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

Function Documentation

void PrintPath(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.

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