public interface CySubNetwork extends CyNetwork
CyNetwork
that is contained within a parent
CyNetwork
. See the description in CyRootNetwork
for
a more complete description of Cytoscape's meta-network model.Module: model-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>model-api</artifactId> </dependency>
DEFAULT_ATTRS, HIDDEN_ATTRS, LOCAL_ATTRS, NAME, SELECTED
SUID
Modifier and Type | Method and Description |
---|---|
boolean |
addEdge(CyEdge edge)
Adds an edge to this
CySubNetwork . |
CyEdge |
addEdge(CyNode source,
CyNode target,
boolean directed)
A shortcut method that Creates a new
CyEdge in both this subnetwork
AND in the CyRootNetwork . |
CyNode |
addNode()
A shortcut method that Creates a new
CyNode in both this subnetwork
AND in the CyRootNetwork . |
boolean |
addNode(CyNode node)
Adds a node to this
CySubNetwork . |
CyRootNetwork |
getRootNetwork()
Return the
CyRootNetwork that contains this CySubNetwork. |
boolean |
removeEdges(Collection<CyEdge> edge)
Removes a edge from this
CySubNetwork but not from the CyRootNetwork . |
boolean |
removeNodes(Collection<CyNode> node)
Removes a node from this
CySubNetwork but not from the CyRootNetwork . |
containsEdge, containsEdge, containsNode, getAdjacentEdgeIterable, getAdjacentEdgeList, getConnectingEdgeList, getDefaultEdgeTable, getDefaultNetworkTable, getDefaultNodeTable, getEdge, getEdgeCount, getEdgeList, getNeighborList, getNode, getNodeCount, getNodeList, getRow, getRow, getSavePolicy, getTable
getSUID
dispose
CyRootNetwork getRootNetwork()
CyRootNetwork
that contains this CySubNetwork.CyRootNetwork
that contains this CySubNetowrk.boolean addNode(CyNode node)
CySubNetwork
. Note that the added node
is not a new node and must already exist in the CyRootNetwork
.node
- CyNode to add to this subnetworkboolean addEdge(CyEdge edge)
CySubNetwork
. Note that the added edge
is not a new edge and must already exist in the CyRootNetwork
.
If the nodes that define the source and target of the edge are not yet
contained in the subnetwork, they will be added. The nodes must also
already exist in the CyRootNetwork
.edge
- CyEdge to add to this subnetworkCyNode addNode()
CyNode
in both this subnetwork
AND in the CyRootNetwork
.addNode
in interface CyNetwork
CyRootNetwork
.CyEdge addEdge(CyNode source, CyNode target, boolean directed)
CyEdge
in both this subnetwork
AND in the CyRootNetwork
.addEdge
in interface CyNetwork
source
- The source node of the edge. The source node must exist
in the root network.target
- The target node of the edge. The target node must exist
in the root network.directed
- Whether the edge should be considered directed or not.CyRootNetwork
.boolean removeNodes(Collection<CyNode> node)
CySubNetwork
but not from the CyRootNetwork
.
The node is removed from the CySubNetwork, but not deleted
from the CyRootNetwork
.removeNodes
in interface CyNetwork
node
- Node to remove from this subnetworkboolean removeEdges(Collection<CyEdge> edge)
CySubNetwork
but not from the CyRootNetwork
.
The edge is removed from the CySubNetwork, but not deleted
from the CyRootNetwork
.removeEdges
in interface CyNetwork
edge
- Edge to remove from this subnetworkCopyright 2011-2015 Cytoscape Consortium. All rights reserved.