public boolean setGraphPerspective(GraphPerspective gp) { if (gp.getRootGraph() != m_rootGraph) return false; final int[] nodeInx = gp.getNodeIndicesArray(); final int[] edgeInx = gp.getEdgeIndicesArray(); for (int i = 0; i < nodeInx.length; i++) m_rootGraph.addNodeMetaChild(m_rootGraphIndex, nodeInx[i]); for (int i = 0; i < edgeInx.length; i++) m_rootGraph.addEdgeMetaChild(m_rootGraphIndex, edgeInx[i]); return true; }
/** * DOCUMENT ME! * * @param gp DOCUMENT ME! * * @return DOCUMENT ME! */ public boolean setGraphPerspective(GraphPerspective gp) { if (gp.getRootGraph() != m_rootGraph) return false; final int[] nodeInx = gp.getNodeIndicesArray(); final int[] edgeInx = gp.getEdgeIndicesArray(); for (int i = 0; i < nodeInx.length; i++) m_rootGraph.addNodeMetaChild(m_rootGraphIndex, nodeInx[i]); for (int i = 0; i < edgeInx.length; i++) m_rootGraph.addEdgeMetaChild(m_rootGraphIndex, edgeInx[i]); return true; }
if (!(root.addNodeMetaChild(nodeInx[0], nodeInx[1]) && root.addNodeMetaChild(nodeInx[0], nodeInx[4]) && root.addNodeMetaChild(nodeInx[3], nodeInx[1]) && root.addNodeMetaChild(nodeInx[4], nodeInx[4]) && root.addEdgeMetaChild(nodeInx[3], edgeInx[6]) && root.addEdgeMetaChild(nodeInx[3], edgeInx[0]) || root.addNodeMetaChild(nodeInx[3], nodeInx[1]) || root.addEdgeMetaChild(0, edgeInx[0]) || root.addEdgeMetaChild(nodeInx[1], 0) || root.addEdgeMetaChild(99, 98) || root.addEdgeMetaChild(Integer.MAX_VALUE, Integer.MIN_VALUE) || root.addNodeMetaChild(0, nodeInx[2]) || root.addNodeMetaChild(nodeInx[2], 0) || root.addNodeMetaChild(87, 23) || root.addNodeMetaChild(Integer.MIN_VALUE, Integer.MAX_VALUE)) throw new IllegalStateException("failure of failure during creation"); if (!root.addNodeMetaChild(nodeInx[2], nodeInx[1])) throw new IllegalStateException("failed to create relationship"); if (root.addNodeMetaChild(nodeInx[2], nodeInx[1]) || root.addNodeMetaChild(nodeInx[4], nodeInx[0])) throw new IllegalStateException("was able to create duplicate meta"); && root.addNodeMetaChild(nodeInx[2], nodeInx[2]))) throw new IllegalStateException("failed to create meta relationship"); if (root.addNodeMetaChild(nodeInx[2], nodeInx[2]) || root.addEdgeMetaChild(nodeInx[4], edgeInx[5]) || root.addEdgeMetaChild(nodeInx[4], edgeInx[6]))
nodeInx[nodeInx.length - 1] = root.createNode(null, new int[] { edgeInx[6], edgeInx[2] }); if (!(root.addNodeMetaChild(nodeInx[0], nodeInx[1]) && root.addNodeMetaChild(nodeInx[0], nodeInx[4]) && root.addNodeMetaChild(nodeInx[3], nodeInx[1]) && root.addNodeMetaChild(nodeInx[4], nodeInx[4]) && root.addEdgeMetaChild(nodeInx[3], edgeInx[6]) && root.addEdgeMetaChild(nodeInx[3], edgeInx[0]) nodeNotInPersp.getRootGraphIndex(), false)); root.addNodeMetaChild(nodeInx[2], nodeNotInPersp.getRootGraphIndex()); root.addNodeMetaChild(nodeNotInPersp.getRootGraphIndex(), nodeInx[4]); root.addEdgeMetaChild(nodeInx[3], edge1NotInPersp.getRootGraphIndex());