Skip to content

Commit 6eb1756

Browse files
committed
style: format code for consistency in johnsonsAlgorithm.js
1 parent 74f3781 commit 6eb1756

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Graphs/JohnsonsAlgorithm.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ function dijkstra(graph, source) {
5050
return dist
5151
}
5252

53-
5453
export function johnsonsAlgorithm(graph) {
5554
const n = graph.length
5655

57-
const newGraph = graph.map(edges => [...edges])
56+
const newGraph = graph.map((edges) => [...edges])
5857
newGraph.push([])
5958
for (let v = 0; v < n; v++) {
6059
newGraph[newGraph.length - 1].push([v, 0])

0 commit comments

Comments
 (0)