MCPcopy Create free account
hub / github.com/apache/datafusion / connected_nodes

Method connected_nodes

datafusion/physical-expr/src/intervals/cp_solver.rs:499–506  ·  view source on GitHub ↗

Returns the set of node indices reachable from the root node via a simple depth-first search.

(&self)

Source from the content-addressed store, hash-verified

497 /// Returns the set of node indices reachable from the root node via a
498 /// simple depth-first search.
499 fn connected_nodes(&self) -> HashSet<NodeIndex> {
500 let mut nodes = HashSet::new();
501 let mut dfs = Dfs::new(&self.graph, self.root);
502 while let Some(node) = dfs.next(&self.graph) {
503 nodes.insert(node);
504 }
505 nodes
506 }
507
508 /// Updates intervals for all expressions in the DAEG by successive
509 /// bottom-up and top-down traversals.

Callers 1

gather_node_indicesMethod · 0.80

Calls 3

newFunction · 0.85
nextMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected