Skip to main content

include_subtree

Function include_subtree 

Source
fn include_subtree(
    children_of: &HashMap<u32, Vec<u32>>,
    root: u32,
    included: &mut HashSet<u32>,
)
Expand description

Insert every descendant of root (not root itself) into included, walking the parent -> children index.