|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CyRootNetwork
CyRootNetwork is an interface for managing Cytoscape's
meta-network implementation. While most applications (and users!)
will treat each CyNetwork
created within Cytoscape
as an independent network, beginning with Cytoscape 3.0,
Cytoscape has provided a mechanism for implementing a more
complex meta-network structure that can be used for a variety
of other use cases, including implementing subnetworks
and shared nodes between subnetworks. Beyond the concepts
and methods provided by CyNetwork
a meta-network
adds three new concepts:
CyNetwork
that
adds methods for maintaining the meta-network.
All CyNode
s and CyEdge
s in all CySubNetwork
s
that are part of this CyRootNetwork.
CySubNetwork
is a set of nodes and edges
that comprise a sub-network of a CyRootNetwork
.
A CySubNetwork
may be thought of as a projection of
the graph implemented by the CyRootNetwork.
Field Summary | |
---|---|
static String |
SHARED_ATTRS
The name of the table shared by all subnetworks. |
static String |
SHARED_INTERACTION
The name of the shared interaction column found in the SHARED_ATTRS table. |
static String |
SHARED_NAME
The name of the shared name column found in the SHARED_ATTRS table. |
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 | |
---|---|
CySubNetwork |
addSubNetwork()
Create an empty CySubNetwork . |
CySubNetwork |
addSubNetwork(Iterable<CyNode> nodes,
Iterable<CyEdge> edges)
Create a CySubNetwork containing the specified CyNode s and
CyEdge s. |
boolean |
containsNetwork(CyNetwork n)
Returns true if the network to be checked is a subnetwork of this root network and returns false otherwise. |
CySubNetwork |
getBaseNetwork()
The initial network of CyNode s and CyEdge s. |
CyTable |
getSharedEdgeTable()
Returns the edge table shared by all subnetworks. |
CyTable |
getSharedNetworkTable()
Returns the network table shared by all subnetworks. |
CyTable |
getSharedNodeTable()
Returns the node table shared by all subnetworks. |
List<CySubNetwork> |
getSubNetworkList()
Will return A list of all CySubNetwork s contained in this root network. |
void |
removeSubNetwork(CySubNetwork sub)
Removes the subnetwork from the root network, but not the nodes and edges contained in the subnetwork. |
Methods inherited from interface org.cytoscape.model.CyNetwork |
---|
addEdge, addNode, containsEdge, containsEdge, containsNode, getAdjacentEdgeIterable, getAdjacentEdgeList, getConnectingEdgeList, getDefaultEdgeTable, getDefaultNetworkTable, getDefaultNodeTable, getEdge, getEdgeCount, getEdgeList, getNeighborList, getNode, getNodeCount, getNodeList, getRow, getRow, removeEdges, removeNodes |
Methods inherited from interface org.cytoscape.model.CyIdentifiable |
---|
getSUID |
Field Detail |
---|
static final String SHARED_ATTRS
static final String SHARED_NAME
static final String SHARED_INTERACTION
Method Detail |
---|
CySubNetwork addSubNetwork()
CySubNetwork
.
CySubNetwork
.CySubNetwork addSubNetwork(Iterable<CyNode> nodes, Iterable<CyEdge> edges)
CySubNetwork
containing the specified CyNode
s and
CyEdge
s. The nodes and edges must already exist in this root network.
Nodes defining the source and target of edges that have not yet been added
to the subnetwork will be added.
nodes
- The nodes to be added to the network. May be null or empty.edges
- The edges to be added to the network. May be null or empty.
CySubNetwork
.void removeSubNetwork(CySubNetwork sub)
sub
- the CySubNetwork
to remove.List<CySubNetwork> getSubNetworkList()
CySubNetwork
s contained in this root network.
CySubNetwork
s contained in this root network.CySubNetwork getBaseNetwork()
CyNode
s and CyEdge
s. Every root network
began with something, and this network is that something.
CySubNetwork
that the root network began with.boolean containsNetwork(CyNetwork n)
n
- The network to be checked.
CyTable getSharedNetworkTable()
CyTable getSharedNodeTable()
CyTable getSharedEdgeTable()
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |