(sub graph.Iterator, morphism Morphism, maxDepth int)
| 27 | var DefaultMaxRecursiveSteps = 50 |
| 28 | |
| 29 | func NewRecursive(sub graph.Iterator, morphism Morphism, maxDepth int) *Recursive { |
| 30 | it := &Recursive{ |
| 31 | it: newRecursive(graph.AsShape(sub), func(it graph.IteratorShape) graph.IteratorShape { |
| 32 | return graph.AsShape(morphism(graph.AsLegacy(it))) |
| 33 | }, maxDepth), |
| 34 | } |
| 35 | it.Iterator = graph.NewLegacy(it.it, it) |
| 36 | return it |
| 37 | } |
| 38 | |
| 39 | func (it *Recursive) AddDepthTag(s string) { |
| 40 | it.it.AddDepthTag(s) |