MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / copyFiltersRecurse

Method copyFiltersRecurse

query/shortest.go:275–284  ·  view source on GitHub ↗
(otherSubgraph *SubGraph)

Source from the content-addressed store, hash-verified

273}
274
275func (sg *SubGraph) copyFiltersRecurse(otherSubgraph *SubGraph) {
276 *sg = *otherSubgraph
277 sg.Children = []*SubGraph{}
278 sg.Filters = []*SubGraph{}
279 for _, fc := range otherSubgraph.Filters {
280 tempChild := new(SubGraph)
281 tempChild.copyFiltersRecurse(fc)
282 sg.Filters = append(sg.Filters, tempChild)
283 }
284}
285
286func runKShortestPaths(ctx context.Context, sg *SubGraph) ([]*SubGraph, error) {
287 var err error

Callers 3

expandOutMethod · 0.80
recursiveCopyFunction · 0.80
expandChildrenFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected