예제 #1
0
 @Override
 public Set<Node> getNodes(int degree) {
   Set<Node> nodes = source.getNodes(degree);
   if (degree == 2) {
     nodes.add(root);
   }
   return nodes;
 }
예제 #2
0
 @Override
 public Node[] getNodes(Edge edge) {
   return source.getNodes(edge);
 }