MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / tarjans_scc.py

File tarjans_scc.py

graphs/tarjans_scc.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from collections import deque
2
3
4def tarjan(g: list[list[int]]) -> list[list[int]]:

Callers

nothing calls this directly

Calls 2

create_graphFunction · 0.85
tarjanFunction · 0.85

Tested by

no test coverage detected