예제 #1
0
  @Override
  protected Collection<Node> getOutputs(final Node node) {
    List<Arc> arcs = graph.getOutputArcs(node);

    List<Node> outputs = new ArrayList<Node>(arcs.size());

    for (Arc arc : arcs) {
      outputs.add(arc.getEndNode());
    }

    return outputs;
  }
예제 #2
0
  @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;
  }
예제 #3
0
 @Override
 protected boolean hasNoInputs(final Node node) {
   return graph.getInputArcs(node).isEmpty();
 }
예제 #4
0
 @Override
 protected Collection<Node> getStartNodes() {
   return graph.getStartNodes();
 }