GraphPerspectiveNodesHiddenEvent(Object source, Node[] hiddenNodes) { super(source); m_hiddenNodes = hiddenNodes; m_hiddenNodeInx = new int[m_hiddenNodes.length]; for (int i = 0; i < m_hiddenNodeInx.length; i++) m_hiddenNodeInx[i] = m_hiddenNodes[i].getRootGraphIndex(); }
/** * DOCUMENT ME! * * @param source DOCUMENT ME! * @param target DOCUMENT ME! * * @return DOCUMENT ME! */ public int createEdge(Node source, Node target) { return createEdge(source, target, source.getRootGraphIndex() != target.getRootGraphIndex()); }
public int nextInt() { if ((nodeArr[index] == null) || (nodeArr[index].getRootGraph() != root)) throw new IllegalArgumentException(); return nodeArr[index++].getRootGraphIndex(); } },
public int nextInt() { if ((nodeArr[index] == null) || (nodeArr[index].getRootGraph() != root)) throw new IllegalArgumentException(); return nodeArr[index++].getRootGraphIndex(); } },
/** * Return the requested Attribute for the given Node * @param node the given CyNode * @param attribute the name of the requested attribute * @return the value for the give node, for the given attribute */ public Object getNodeAttributeValue(Node node, String attribute) { return getNodeAttributeValue(node.getRootGraphIndex(), attribute); }
/** * Return the requested Attribute for the given Node * @param node the given CyNode * @param attribute the name of the requested attribute * @param value the value to be set * @return if it overwrites a previous value */ public boolean setNodeAttributeValue(Node node, String attribute, Object value) { return setNodeAttributeValue(node.getRootGraphIndex(), attribute, value); }
/** * DOCUMENT ME! * * @param child DOCUMENT ME! * @param parent DOCUMENT ME! * * @return DOCUMENT ME! */ public boolean isMetaParent(Node child, Node parent) { if ((child.getRootGraph() != this) || (parent.getRootGraph() != this)) return false; return isNodeMetaParent(child.getRootGraphIndex(), parent.getRootGraphIndex()); }
/** * DOCUMENT ME! * * @param parent DOCUMENT ME! * @param child DOCUMENT ME! * * @return DOCUMENT ME! */ public boolean addMetaChild(Node parent, Node child) { if ((parent.getRootGraph() != this) || (child.getRootGraph() != this)) return false; return addNodeMetaChild(parent.getRootGraphIndex(), child.getRootGraphIndex()); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public java.util.List edgeMetaChildrenList(Node node) { if (node.getRootGraph() != this) return null; return edgeMetaChildrenList(node.getRootGraphIndex()); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public java.util.List metaParentsList(Node node) { if (node.getRootGraph() != this) return null; return nodeMetaParentsList(node.getRootGraphIndex()); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public boolean containsNode(Node node) { return (node.getRootGraph() == this) && (getNode(node.getRootGraphIndex()) != null); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public java.util.List nodeMetaChildrenList(Node node) { if (node.getRootGraph() != this) return null; return nodeMetaChildrenList(node.getRootGraphIndex()); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public java.util.List nodeMetaChildrenList(Node node) { if (!(node.getRootGraph() == m_root)) { return null; } return nodeMetaChildrenList(node.getRootGraphIndex()); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public int getInDegree(Node node) { if (node.getRootGraph() == this) return getInDegree(node.getRootGraphIndex()); else return -1; }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public java.util.List metaParentsList(Node node) { if (!(node.getRootGraph() == m_root)) { return null; } return nodeMetaParentsList(node.getRootGraphIndex()); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public boolean containsNode(Node node) { int nativeInx; return (node.getRootGraph() == m_root) && ((nativeInx = m_rootToNativeNodeInxMap.get(~(node.getRootGraphIndex()))) >= 0) && (nativeInx != Integer.MAX_VALUE); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public java.util.List edgeMetaChildrenList(Node node) { if (!(node.getRootGraph() == m_root)) { return null; } return edgeMetaChildrenList(node.getRootGraphIndex()); }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public int getOutDegree(Node node) { if (node.getRootGraph() == this) return getOutDegree(node.getRootGraphIndex()); else return -1; }
/** * DOCUMENT ME! * * @param node DOCUMENT ME! * * @return DOCUMENT ME! */ public int getDegree(Node node) { if (node.getRootGraph() == this) return getDegree(node.getRootGraphIndex()); else return -1; }
/** * DOCUMENT ME! * * @param parent DOCUMENT ME! * @param child DOCUMENT ME! * * @return DOCUMENT ME! */ public boolean addMetaChild(Node parent, Edge child) { if ((parent.getRootGraph() != this) || (child.getRootGraph() != this)) return false; return addEdgeMetaChild(parent.getRootGraphIndex(), child.getRootGraphIndex()); }