From 1b655ddb082a5a93f06bf524195ff891b6d2952d Mon Sep 17 00:00:00 2001 From: Pranay <112006221+pranaydeep1@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:27:18 +0530 Subject: [PATCH] Update Johnson's-algo.md Updated according to instructions, kindly check and review --- docs/graphs/Johnson's-algo.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/graphs/Johnson's-algo.md b/docs/graphs/Johnson's-algo.md index 1d1173366..f99ae422d 100644 --- a/docs/graphs/Johnson's-algo.md +++ b/docs/graphs/Johnson's-algo.md @@ -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: