Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector<vector<Node*>> Matrix::graphRepresentation()
- {
- vector<vector<Node*>> graph;
- int k = 0;
- for (int i = 0; i < this->rows; i++)
- {
- for (int j = 0; j < this->cols; j++)
- {
- if (matrix[i][j] == '.')
- {
- graph.at(k).push_back(new Node(i, j, NULL));
- }
- }
- }
- return graph;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement