Skip to content

Commit 79aceae

Browse files
author
I529010
committed
define return type
1 parent 637e04a commit 79aceae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matrix/transitive_closure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def transitive_closure(graph):
1+
def transitive_closure(graph) -> list[list[int]]:
22
"""
33
Computes the transitive closure of a directed graph using the Floyd-Warshall algorithm.
44

0 commit comments

Comments
 (0)