MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / DepthFirstSearch

Function DepthFirstSearch

graph/depthfirstsearch.go:59–61  ·  view source on GitHub ↗
(start, end int, nodes []int, edges [][]bool)

Source from the content-addressed store, hash-verified

57}
58
59func DepthFirstSearch(start, end int, nodes []int, edges [][]bool) ([]int, bool) {
60 return DepthFirstSearchHelper(start, end, nodes, edges, false)
61}
62
63// func main() {
64// nodes := []int{

Callers 2

TestDfsWhenPathIsFoundFunction · 0.85

Calls 1

DepthFirstSearchHelperFunction · 0.85

Tested by 2

TestDfsWhenPathIsFoundFunction · 0.68