MCPcopy 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
158def 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
164def test_dfs_iterative():

Callers 1

mainFunction · 0.85

Calls 2

dfs_recursiveMethod · 0.80
get_test_graph_1Function · 0.70

Tested by

no test coverage detected