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

Function dfs

code/code/graph_algorithms/src/depth_first_search/dfs.go:58–69  ·  view source on GitHub ↗

************************************** * Algorithm **************************************/ Perform a depth first search from the given node and apply the given function to each node.

(g *Graph, current int, visited set, visitFunction func(int))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected