if (node.getInDegree() == 1 && node.getOutDegree() == 2)
return(Graph.PASS_AND_CONTINUE);
return(Graph.FAIL_QUERY);
}
};
assertTrue(after.queryNodes(visitor).size() == Math.pow(2,k)-2); //internal
visitor = new GraphVisitor() {
public int visit(Graphable component) {
DirectedNode node = (DirectedNode)component;
if (node.getInDegree() == 1 && node.getOutDegree() == 0)