We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637e04a commit 79aceaeCopy full SHA for 79aceae
matrix/transitive_closure.py
@@ -1,4 +1,4 @@
1
-def transitive_closure(graph):
+def transitive_closure(graph) -> list[list[int]]:
2
"""
3
Computes the transitive closure of a directed graph using the Floyd-Warshall algorithm.
4
0 commit comments