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

Function test

code/code/graph_algorithms/src/breadth_first_search/bfs.rb:95–137  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

bfsFunction · 0.70
newMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected