giny.model.Node.getRootGraphIndex()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(69)

本文整理了Java中giny.model.Node.getRootGraphIndex()方法的一些代码示例,展示了Node.getRootGraphIndex()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getRootGraphIndex()方法的具体详情如下:
包路径:giny.model.Node
类名称:Node
方法名:getRootGraphIndex

Node.getRootGraphIndex介绍

暂无

代码示例

代码示例来源:origin: cytoscape.corelibs/fing

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();
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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());
}

代码示例来源:origin: cytoscape/application

public int nextInt() {
    if ((nodeArr[index] == null) || (nodeArr[index].getRootGraph() != root))
      throw new IllegalArgumentException();
    return nodeArr[index++].getRootGraphIndex();
  }
},

代码示例来源:origin: cytoscape.corelibs/fing

public int nextInt() {
    if ((nodeArr[index] == null) || (nodeArr[index].getRootGraph() != root))
      throw new IllegalArgumentException();
    return nodeArr[index++].getRootGraphIndex();
  }
},

代码示例来源:origin: cytoscape/application

/**
 * 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);
}

代码示例来源:origin: cytoscape/application

/**
* 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);
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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());
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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());
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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());
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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());
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  DOCUMENT ME!
 *
 * @param node DOCUMENT ME!
 *
 * @return  DOCUMENT ME!
 */
public boolean containsNode(Node node) {
  return (node.getRootGraph() == this) && (getNode(node.getRootGraphIndex()) != null);
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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());
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 * 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());
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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;
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 * 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());
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 * 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);
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 * 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());
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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;
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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;
}

代码示例来源:origin: cytoscape.corelibs/fing

/**
 *  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());
}

相关文章

微信公众号

最新文章

更多