Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. vector<vector<Node*>> Matrix::graphRepresentation()
  2. {
  3. vector<vector<Node*>> graph;
  4. int k = 0;
  5. for (int i = 0; i < this->rows; i++)
  6. {
  7. for (int j = 0; j < this->cols; j++)
  8. {
  9. if (matrix[i][j] == '.')
  10. {
  11. graph.at(k).push_back(new Node(i, j, NULL));
  12. }
  13. }
  14. }
  15.  
  16. return graph;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement