@Override protected Collection<Node> getInputs(final Node node) { List<Arc> arcs = graph.getInputArcs(node); List<Node> inputs = new ArrayList<Node>(arcs.size()); for (Arc arc : arcs) { inputs.add(arc.getStartNode()); } return inputs; }
@Override protected boolean hasNoInputs(final Node node) { return graph.getInputArcs(node).isEmpty(); }