public boolean complete(Map<Integer, GenNode> map) { for (NodeElement node : incomings) { if (!map.containsKey(node.getId())) { NodeElement parent = node.getParent(); if (parent == null) { return false; } if (!map.containsKey(parent.getId())) { return false; } } } return true; }