Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/jwasham/practice-python
/ test_dfs_recursive
Function
test_dfs_recursive
graphs/undirected_graph_matrix.py:158–161 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
156
157
158
def
test_dfs_recursive():
159
udg = get_test_graph_1()
160
p1 = udg.dfs_recursive()
161
assert(p1 == {0: 1, 1: 0, 2: 1, 3: 2, 4: 3, 5: 4, 6: 5, 7: 6, 8: 7})
162
163
164
def
test_dfs_iterative():
Callers
1
main
Function · 0.85
Calls
2
dfs_recursive
Method · 0.80
get_test_graph_1
Function · 0.70
Tested by
no test coverage detected