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