|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CyGroup
An object that represents a group of nodes and edges. A CyGroup
is an object that encapsulates a CyNode
that represents
a collection of CyNode
s and connecting CyEdge
s
stored as a CyNetwork
. In addition a CyGroup maintains
information about the links between the nodes in the group and
nodes external to the group. Groups may be collapsed or expanded.
A collapsed group is represented in a network as the CyNode
representing the group and a series of "meta" edges that represent
the edges between nodes within the group and external nodes. Like
any other node, the group node can also have edges connecting to other
nodes.
Method Summary | |
---|---|
void |
addEdges(List<CyEdge> edges)
Add a list of edges to a group. |
void |
addGroupToNetwork(CyNetwork network)
Add a group to an additional network. |
void |
addNodes(List<CyNode> nodes)
Add a list of nodes and their edges |
void |
collapse(CyNetwork network)
Collapse this group in the designated network. |
void |
expand(CyNetwork network)
Expand this group in the designated network. |
Set<CyEdge> |
getExternalEdgeList()
Returns the list of exterior edges connected to the nodes within this group. |
CyNetwork |
getGroupNetwork()
Returns the network referenced by this group. |
CyNode |
getGroupNode()
Return the CyNode that represents this group
in the network. |
List<CyEdge> |
getInternalEdgeList()
Returns the list of edges contained within this group. |
Set<CyNetwork> |
getNetworkSet()
Return the list of CyNetwork s this group is in. |
List<CyNode> |
getNodeList()
Returns the list of nodes contained within this group. |
CyRootNetwork |
getRootNetwork()
Return the root network for this group. |
boolean |
isCollapsed(CyNetwork network)
Return whether this group is expanded or collapsed in the designated network. |
boolean |
isInNetwork(CyNetwork network)
Check to see if this group is defined in a particular network. |
void |
removeEdges(List<CyEdge> edges)
Remove a set of edges from a group. |
void |
removeGroupFromNetwork(CyNetwork network)
Remove a group from a network. |
void |
removeNodes(List<CyNode> nodes)
Remove a set of nodes and their edges from a group |
Method Detail |
---|
CyNode getGroupNode()
CyNode
that represents this group
in the network.
CyNode
for this groupList<CyNode> getNodeList()
List<CyEdge> getInternalEdgeList()
Set<CyEdge> getExternalEdgeList()
CyNetwork getGroupNetwork()
void addNodes(List<CyNode> nodes)
nodes
- the list of nodes to addvoid addEdges(List<CyEdge> edges)
addNodes(java.util.List)
either the source
node or target node for the edge must be
in the group.
edges
- the list of edges to addvoid removeNodes(List<CyNode> nodes)
nodes
- the nodes to removevoid removeEdges(List<CyEdge> edges)
edges
- the edges to removeCyRootNetwork getRootNetwork()
void addGroupToNetwork(CyNetwork network)
CyRootNetwork
network
- the CyNetwork
to add the group tovoid removeGroupFromNetwork(CyNetwork network)
network
- the CyNetwork
to remove the group fromSet<CyNetwork> getNetworkSet()
CyNetwork
s this group is in.
CyNetwork
s that contain this groupboolean isInNetwork(CyNetwork network)
network
- the CyNetwork
to test
void collapse(CyNetwork network)
network
- the CyNetwork
that this group should
be collapsed invoid expand(CyNetwork network)
network
- the CyNetwork
that this group
should be expanded inboolean isCollapsed(CyNetwork network)
network
- the CyNetwork
we're interested in
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |