Skip to content

Commit

Permalink
On track to proceed with Linda's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-naish committed Apr 24, 2024
1 parent 477a2ad commit 49f0dad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/controllers/AStar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copied and modified from dijkstra.js (might have been better to put
// common code in a single file - they are very similar and could be
// made moreso).
// made more-so).
// If we add support for multiple end nodes elsewhere, we may need to
// check there is a single end node here
import GraphTracer from '../../components/DataStructures/Graph/GraphTracer';
Expand Down
3 changes: 3 additions & 0 deletions src/algorithms/controllers/README_graph_search
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ It might be a good idea to pass all the relevant variables all the time for
consistency. Basically, you should ideally be able to copy/paste code from
one chunker.add call to another without having to rename variables, etc.

dijkstra.js has been moved in the right direction wrt the points above
and AStar.js is a copied and edited version (might have been better to
generalise some code and use a file with common code).

0 comments on commit 49f0dad

Please sign in to comment.