Tarjan: Difference between revisions

32 bytes removed ,  2 years ago
m
→‎Python: As class: (`gv` is not used anywhere)
(Corrected missing starting "<".)
m (→‎Python: As class: (`gv` is not used anywhere))
Line 997:
self.name = name
self.connections = connections
self.gv = self._to_gv()
g = defaultdict(list) # map node vertex to direct connections
for n1, n2 in connections:
1,480

edits