Fix method is_direct_successor to work only for parent->children relations.