Skip to content

Commit 3b475be

Browse files
authored
Change description
1 parent 55d0ce0 commit 3b475be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The visualizer has 5 functions:
4949
[Tarjan's algorithm](https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm) is used to determine whether the directed graph is strongly connected by finding the strongly connected components (SCCs) of the graph. The implementation of Tarjan's algorithm is as follows:
5050

5151
- **If the graph is strongly connected**<br>
52-
Print the resulting graph
52+
Print the resulting strongly-connected graph
5353
- **Else**<br>
5454
Generate random edges between vertices until the graph is strongly connected
5555

@@ -81,7 +81,7 @@ Refer to [CycleDetection.java](/src/graphvisualizer/graphalgorithms/CycleDetecti
8181
[Dijkstra's algorithm](https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm) is used to determine the shortest path between two end vertices in the graph. You can select a start vertex and an end vertex of the shortest path by double-clicking the vertices. The selected end vertices are shown in yellow. The implementation of Dijkstra's algorithm is as follows:
8282

8383
- **If there is a path between the start vertex and the end vertex**<br>
84-
Print the shortest path between the end vertices
84+
Print the shortest path between the end vertices and the path cost
8585
- **Else**<br>
8686
Generate random edges between vertices until a path is formed between the end vertices
8787

0 commit comments

Comments
 (0)