Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ test_johnson_negative_cycle
Function
test_johnson_negative_cycle
graphs/tests/test_johnson.py:21–24 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
20
21
def
test_johnson_negative_cycle():
22
g2 = {0: [(1, 1)], 1: [(0, -3)]}
23
with
pytest.raises(ValueError):
24
johnson(g2)
Callers
nothing calls this directly
Calls
1
johnson
Function · 0.90
Tested by
no test coverage detected