MCPcopy
hub / github.com/cayleygraph/cayley / newRecursive

Function newRecursive

graph/iterator/recursive.go:58–67  ·  view source on GitHub ↗
(it graph.IteratorShape, morphism Morphism2, maxDepth int)

Source from the content-addressed store, hash-verified

56}
57
58func newRecursive(it graph.IteratorShape, morphism Morphism2, maxDepth int) *recursive {
59 if maxDepth == 0 {
60 maxDepth = DefaultMaxRecursiveSteps
61 }
62 return &recursive{
63 subIt: it,
64 morphism: morphism,
65 maxDepth: maxDepth,
66 }
67}
68
69func (it *recursive) Iterate() graph.Scanner {
70 return newRecursiveNext(it.subIt.Iterate(), it.morphism, it.maxDepth, it.depthTags)

Callers 1

NewRecursiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected