Skip to content

Commit 472e77e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8fef696 commit 472e77e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: graphs/graphs_floyd_warshall.py

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def _print_dist(dist, v):
1414
else:
1515
print("INF", end="\t")
1616
print()
17+
18+
1719
def floyd_warshall(graph, v):
1820
"""
1921
Computes the shortest paths in a weighted graph with positive or negative edge weights (but with no negative cycles).
@@ -79,6 +81,7 @@ def floyd_warshall(graph, v):
7981

8082
if __name__ == "__main__":
8183
import doctest
84+
8285
doctest.testmod()
8386
v = int(input("Enter number of vertices: "))
8487
e = int(input("Enter number of edges: "))

0 commit comments

Comments
 (0)