fn entered_node<NodeId>( entered: &mut Vec<(NodeId, Vec<NodeId>)>, node: NodeId, children: Vec<NodeId>, )where NodeId: Ord,
Add to entered that we have entered node and node has children.
entered
node
children