Skip to content

Commit 5e228b4

Browse files
committed
Update README.markdown
1 parent d868a05 commit 5e228b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Topological Sort/README.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ The in-degree of a node is the number of incoming edges to that node. All nodes
2020

2121
If you think about it in the context of the previous example these nodes represent algorithms that don't need anything else to be learnt, hence the sort starts with them.
2222

23-
### Step 2: Use depth first search for traversal
23+
### Step 2: Depth first search for traversal
2424

25-
Depth first search is an algorithm that is used to traverse a graph. This algorithm traverses all the child nodes recursively and uses backtracking to find other edges.
25+
Depth first search is an algorithm that is used to traverse a graph. This algorithm traverses all the child nodes recursively and uses backtracking.
2626

27-
To know more about this algorithm please take a look at the explanation here.
27+
To know more about this algorithm please take a look at the explanation [here](https://github.com/hollance/swift-algorithm-club/tree/master/Depth-First%20Search).
2828

2929
### Step 3: Remember all visited nodes
3030

31-
The last step of the sort is to maintain a list of all the nodes that have already been visited.
31+
The last step of the sort is to maintain a list of all the nodes that have been visited. This is to avoid visiting the same node twice.
3232

3333
## Example
3434

0 commit comments

Comments
 (0)