Skip to content

Commit bc17afd

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 88c8f1e commit bc17afd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎matrix/transitive_closure.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
https://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm
44
"""
55

6+
67
def transitive_closure(graph: list[list[int]]) -> list[list[int]]:
78
"""
89
Compute the transitive closure of a directed graph using the

0 commit comments

Comments
 (0)