Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jwasham/practice-python
/ test_dfs_iterative
Function
test_dfs_iterative
graphs/undirected_graph_matrix.py:164–167 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
162
163
164
def
test_dfs_iterative():
165
udg = get_test_graph_1()
166
p1 = udg.dfs_iterative()
167
assert(p1 == {0: 1, 1: 0, 2: 1, 3: 7, 4: 5, 5: 6, 6: 7, 7: 1, 8: 7})
168
169
170
def
test_bfs():
Callers
1
main
Function · 0.85
Calls
2
dfs_iterative
Method · 0.80
get_test_graph_1
Function · 0.70
Tested by
no test coverage detected