fn recurse(
    query: &DepGraphQuery,
    node_states: &mut [State],
    node: NodeIndex
) -> bool