Closed Iqbal-khan07 closed 4 years ago
Does this astar work? It needs a lot of comments since poor name of variables makes it hard to follow the code; an example for v in tempNode.vertices: it can be neighbours = tempNode.vertices for neighbor in neighbours ....... It makes it much more clear what the algorithm is trying to do. https://github.com/vap38/CS435_Project2/blob/c69f244b05592c79d575ca071ef73700042a28e5/aStar/GridGraph.py#L121
for v in tempNode.vertices:
neighbours = tempNode.vertices for neighbor in neighbours .......
Commit 527173e
Does this astar work? It needs a lot of comments since poor name of variables makes it hard to follow the code; an example
for v in tempNode.vertices:
it can beneighbours = tempNode.vertices for neighbor in neighbours .......
It makes it much more clear what the algorithm is trying to do. https://github.com/vap38/CS435_Project2/blob/c69f244b05592c79d575ca071ef73700042a28e5/aStar/GridGraph.py#L121