MCPcopy 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
303def 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
310def test_bfs():

Callers 1

mainFunction · 0.85

Calls 2

dfsMethod · 0.80
get_test_graph_1Function · 0.70

Tested by

no test coverage detected