Skip to content

Commit d8d80ea

Browse files
committed
paraphrase code comments to clarify dps
1 parent 9447298 commit d8d80ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lab-Exercise-1/GraphAlgorithm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
using namespace std;
3131

32-
/// TODO: Implement your depth-first search here to traverse each program path (once for any loop) from src to dst.
32+
/// TODO: Implement your depth-first search here to traverse each program path from src to dst (each node appears at most once in each path).
3333
/// Add each path as a string into std::set<std::string> paths.
3434
/// Each path should have a format like this: "START->1->2->4->5->END", where -> indicates an edge connecting two node IDs.
3535
void Graph::reachability(Node* src, Node* dst) {

0 commit comments

Comments
 (0)