Skip to content

Commit 3136599

Browse files
committed
move TypeVar T
1 parent 6f454f2 commit 3136599

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cyaron/graph.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,12 +528,11 @@ def _calc_max_edge(point_count, directed, self_loop):
528528
return max_edge
529529

530530

531-
T = TypeVar('T')
532-
533-
534531
class GraphMatrix:
535532
"""Class GraphMatrix: A class of the graph represented by adjacency matrix"""
536533

534+
T = TypeVar('T')
535+
537536
def __init__(self,
538537
graph: Graph,
539538
default: T = -1,

0 commit comments

Comments
 (0)