MCPcopy Create free account
hub / github.com/Pometry/Raphtory / hop

Method hop

raphtory/src/db/task/node/eval_node.rs:349–371  ·  view source on GitHub ↗
(
        &self,
        op: F,
    )

Source from the content-addressed store, hash-verified

347 }
348
349 fn hop<
350 I: Iterator<Item = VID> + Send + Sync + 'graph,
351 F: Fn(&GraphStorage, &Self::Graph, VID) -> I + Send + Sync + Clone + 'graph,
352 >(
353 &self,
354 op: F,
355 ) -> Self::PathType {
356 let old_op = self.op.clone();
357 let graph = self.eval_graph.base_graph.clone();
358 let storage = self.eval_graph.storage;
359 let new_op = Arc::new(move || {
360 let op = op.clone();
361 let graph = graph.clone();
362 old_op()
363 .flat_map(move |vv| op(storage, &graph, vv))
364 .into_dyn_boxed()
365 });
366
367 EvalPathFromNode {
368 eval_graph: self.eval_graph.clone(),
369 op: new_op,
370 }
371 }
372}
373
374impl<'graph, 'a, S, CS, Current> InternalFilter<'graph>

Callers

nothing calls this directly

Calls 2

into_dyn_boxedMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected