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; }
&& 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.addEdgeMetaChild(nodeInx[0], edgeInx[4]))) throw new IllegalStateException("unable to create meta relationship"); if (!(root.addEdgeMetaChild(nodeInx[3], edgeInx[0]))) throw new IllegalStateException("errors during restoration"); if (!(root.addEdgeMetaChild(nodeInx[0], edgeInx[4]))) throw new IllegalStateException("errors during restoration"); if (!(root.addEdgeMetaChild(nodeInx[4], edgeInx[6]) && root.addEdgeMetaChild(nodeInx[3], edgeInx[6]))) throw new IllegalStateException("errors during restoration"); if (root.addEdgeMetaChild(nodeInx[3], edgeInx[0]) || root.addEdgeMetaChild(nodeInx[4], edgeInx[2]) || 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) if (!(root.addEdgeMetaChild(nodeInx[4], edgeInx[5]) && root.addNodeMetaChild(nodeInx[2], nodeInx[2]))) throw new IllegalStateException("failed to create meta relationship");
&& 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.addEdgeMetaChild(nodeInx[0], edgeInx[4]))) throw new IllegalStateException("unable to create meta relationship"); root.addNodeMetaChild(nodeInx[2], nodeNotInPersp.getRootGraphIndex()); root.addNodeMetaChild(nodeNotInPersp.getRootGraphIndex(), nodeInx[4]); root.addEdgeMetaChild(nodeInx[3], edge1NotInPersp.getRootGraphIndex());