Skip to content

Commit

Permalink
Update Johnson's-algo.md
Browse files Browse the repository at this point in the history
Updated according to instructions, kindly check and review
  • Loading branch information
pranaydeep1 authored Nov 10, 2024
1 parent 0c4c318 commit 1b655dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/graphs/Johnson's-algo.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,13 @@ class JohnsonsAlgorithm {
### Example:
#### Input:
- Graph vertices: 4
- Edges:
- Edges:
```
- (0 -> 1, weight=3)
- (0 -> 2, weight=8)
- (1 -> 3, weight=-2)
- (2 -> 1, weight=4)

```
#### Output:
```
Shortest path distances between all pairs:
Expand Down

0 comments on commit 1b655dd

Please sign in to comment.