Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/jwasham/practice-python
/ test_dfs
Function
test_dfs
graphs/directed_graph_list.py:303–307 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
301
302
303
def
test_dfs():
304
dg1 = get_test_graph_1()
305
c1, p1 = dg1.dfs()
306
assert (c1 == {0, 3, 7})
307
assert (p1 == {1: 0, 2: 1, 4: 2, 5: 0, 6: 2, 8: 5})
308
309
310
def
test_bfs():
Callers
1
main
Function · 0.85
Calls
2
dfs
Method · 0.80
get_test_graph_1
Function · 0.70
Tested by
no test coverage detected