public void visit(mxGraphHierarchyNode parent, mxGraphHierarchyNode cell, mxGraphHierarchyEdge connectingEdge, int layer, int seen) { // Check if the cell is in it's own ancestor list, if so // invert the connecting edge and reverse the target/source // relationship to that edge in the parent and the cell if ((cell) .isAncestor(parent)) { connectingEdge.invert(); parent.connectsAsSource.remove(connectingEdge); parent.connectsAsTarget.add(connectingEdge); cell.connectsAsTarget.remove(connectingEdge); cell.connectsAsSource.add(connectingEdge); } seenNodes.add(cell); unseenNodes.remove(cell); } }, rootsArray, true, null);
public void visit(mxGraphHierarchyNode parent, mxGraphHierarchyNode cell, mxGraphHierarchyEdge connectingEdge, int layer, int seen) { // Check if the cell is in it's own ancestor list, if so // invert the connecting edge and reverse the target/source // relationship to that edge in the parent and the cell if ((cell) .isAncestor(parent)) { connectingEdge.invert(); parent.connectsAsSource.remove(connectingEdge); parent.connectsAsTarget.add(connectingEdge); cell.connectsAsTarget.remove(connectingEdge); cell.connectsAsSource.add(connectingEdge); } seenNodes.add(cell); unseenNodes.remove(cell); } }, rootsArray, true, null);
public void visit(mxGraphHierarchyNode parent, mxGraphHierarchyNode cell, mxGraphHierarchyEdge connectingEdge, int layer, int seen) { // Check if the cell is in it's own ancestor list, if so // invert the connecting edge and reverse the target/source // relationship to that edge in the parent and the cell if ((cell) .isAncestor(parent)) { connectingEdge.invert(); parent.connectsAsSource.remove(connectingEdge); parent.connectsAsTarget.add(connectingEdge); cell.connectsAsTarget.remove(connectingEdge); cell.connectsAsSource.add(connectingEdge); } seenNodes.add(cell); unseenNodes.remove(cell); } }, unseenNodesArray, true, seenNodesCopy);
public void visit(mxGraphHierarchyNode parent, mxGraphHierarchyNode cell, mxGraphHierarchyEdge connectingEdge, int layer, int seen) { // Check if the cell is in it's own ancestor list, if so // invert the connecting edge and reverse the target/source // relationship to that edge in the parent and the cell if ((cell) .isAncestor(parent)) { connectingEdge.invert(); parent.connectsAsSource.remove(connectingEdge); parent.connectsAsTarget.add(connectingEdge); cell.connectsAsTarget.remove(connectingEdge); cell.connectsAsSource.add(connectingEdge); } seenNodes.add(cell); unseenNodes.remove(cell); } }, unseenNodesArray, true, seenNodesCopy);