|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CySubNetwork
A CySubNetwork is a CyNetwork
that is contained within a parent
CyNetwork
. See the description in CyRootNetwork
for
a more complete description of Cytoscape's meta-network model.
Field Summary |
---|
Fields inherited from interface org.cytoscape.model.CyNetwork |
---|
DEFAULT_ATTRS, HIDDEN_ATTRS, NAME, SELECTED |
Fields inherited from interface org.cytoscape.model.CyIdentifiable |
---|
SUID |
Method Summary | |
---|---|
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 . |
Methods inherited from interface org.cytoscape.model.CyNetwork |
---|
containsEdge, containsEdge, containsNode, getAdjacentEdgeIterable, getAdjacentEdgeList, getConnectingEdgeList, getDefaultEdgeTable, getDefaultNetworkTable, getDefaultNodeTable, getEdge, getEdgeCount, getEdgeList, getNeighborList, getNode, getNodeCount, getNodeList, getRow, getRow |
Methods inherited from interface org.cytoscape.model.CyIdentifiable |
---|
getSUID |
Method Detail |
---|
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 subnetwork
boolean 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 subnetwork
CyNode 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 subnetwork
boolean 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 subnetwork
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |