MCPcopy Create free account
hub / github.com/OpenGenus/quark / test

Function test

code/code/graph_algorithms/src/depth_first_search/dfs.rb:96–138  ·  view source on GitHub ↗

A small test that will use dfs() for root node First, then for the Second node. The dfs accepts a code block, and here we just print each visited node and will never find the goal-node. The tests output: Building Graph for tests... Testing from root node 'First' goal_node

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

dfsFunction · 0.70
newMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected