|
Cytoscape 2.3.1 (c) 2004 ISB, MSKCC, UCSD | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CyNetwork is the primary class for algorithm writing. All algorithms
should take a CyNetwork as input, and do their best to only use the API of
CyNetwork. Plugins that want to affect the display of a graph can look
into using CyNetworkView as well.
A CyNetwork can create Nodes or Edges. Any Nodes or Edges that wish to
be added to a CyNetwork firt need to be created in Cytoscape.
The methods that are defined by CyNetwork mostly deal with data integration
and flagging of nodes/edges. All methods that deal with graph traversal
are part of the inherited API of the GraphPerspective class. Links to
which can be found at the bottom of the methods list.
In general, all methods are supported for working with Nodes/Edges as
objects, and as indices.
Method Summary | |
void |
addCyNetworkListener(CyNetworkListener listener)
Registers the argument as a listener to this object. |
CyEdge |
addEdge(Edge cytoscape_edge)
Add a edge to this Network that already exists in Cytoscape |
int |
addEdge(int cytoscape_edge)
Add a edge to this Network that already exists in Cytoscape |
void |
addFlagEventListener(cytoscape.data.FlagEventListener listener)
Adds a listener for FlagEvents to this CyNetwork |
int |
addNode(int cytoscape_node)
Add a node to this Network that already exists in Cytoscape |
CyNode |
addNode(Node cytoscape_node)
Add a node to this Network that already exists in Cytoscape |
void |
addSelectEventListener(cytoscape.data.SelectEventListener listener)
Adds a listener for SelectEvents to this CyNetwork |
void |
appendNetwork(CyNetwork network)
Appends all of the nodes and edges in the given Network to this Network |
void |
beginActivity(String callerID)
Deprecated. |
void |
deleteEdgeAttribute(String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
void |
deleteNodeAttribute(String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
void |
endActivity(String callerID)
Deprecated. |
void |
flagAllEdges()
Deprecated. As of 2.3, replaced by selectAllEdges() |
void |
flagAllNodes()
Deprecated. As of 2.3, replaced by selectAllNodes() |
void |
forceClear(String callerID)
Deprecated. |
Object |
getClientData(String data_name)
Deprecated. Use CyAttributes directly. This method will be
removed in May, 2007. |
Collection |
getClientDataNames()
Deprecated. Use CyAttributes directly. This method will be
removed in May, 2007. |
Set |
getCyNetworkListeners()
Returns the set of listeners registered with this object. |
cytoscape.data.GraphObjAttributes |
getEdgeAttributes()
Deprecated. Use Cytoscape.getEdgeAttributes() instead. This
method will be removed in September, 2006. |
String[] |
getEdgeAttributesList()
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Object |
getEdgeAttributeValue(Edge edge,
String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Object |
getEdgeAttributeValue(int edge,
String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
ExpressionData |
getExpressionData()
Deprecated. |
int[] |
getFlaggedEdgeIndicesArray()
Deprecated. As of 2.3, replaced by getSelectedEdges() |
Set |
getFlaggedEdges()
Deprecated. As of 2.3, replaced by getSelectedEdges() |
int[] |
getFlaggedNodeIndicesArray()
Deprecated. As of 2.3, replaced by getSelectedNodes() |
Set |
getFlaggedNodes()
Deprecated. As of 2.3, replaced by getSelectedNodes() |
cytoscape.data.FlagFilter |
getFlagger()
Deprecated. As of 2.3, replaced by getSelectFilter() |
GraphPerspective |
getGraphPerspective()
Deprecated. |
String |
getIdentifier()
Can't Change |
cytoscape.data.GraphObjAttributes |
getNodeAttributes()
Deprecated. Use Cytoscape.getNodeAttributes() instead. This
method will be removed in September, 2006. |
String[] |
getNodeAttributesList()
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
String[] |
getNodeAttributesList(Edge[] edges)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
String[] |
getNodeAttributesList(Node[] nodes)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Object |
getNodeAttributeValue(int node,
String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Object |
getNodeAttributeValue(Node node,
String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Set |
getSelectedEdges()
Returns the set of selected edges in this CyNetwork |
Set |
getSelectedNodes()
Returns the set of selected nodes in this CyNetwork |
cytoscape.data.SelectFilter |
getSelectFilter()
|
String |
getTitle()
Can Change |
boolean |
isFlagged(Edge edge)
Deprecated. As of 2.3, replaced by isSelected(Edge) |
boolean |
isFlagged(Node node)
Deprecated. As of 2.3, replaced by isSelected(Node) |
boolean |
isSelected(Edge edge)
Returns the selected state of the given edge. |
boolean |
isSelected(Node node)
Returns the selected state of the given node. |
boolean |
isStateClear()
Deprecated. |
void |
putClientData(String data_name,
Object data)
Deprecated. Use CyAttributes directly. This method will be
removed in May, 2007. |
boolean |
removeCyNetworkListener(CyNetworkListener listener)
Removes the argument from the set of listeners for this object. |
boolean |
removeEdge(int edge_index,
boolean set_remove)
This will remove this edge from the Network. |
void |
removeFlagEventListener(cytoscape.data.FlagEventListener listener)
Deprecated. As of 2.3, replaced by removeSelectEventListener(SelectEventListener) |
boolean |
removeNode(int node_index,
boolean set_remove)
This will remove this node from the Network. |
void |
removeSelectEventListener(cytoscape.data.SelectEventListener listener)
Removes a listener for SelectEvents from this CyNetwork |
void |
selectAllEdges()
Sets the selected state of all edges in this CyNetwork to true |
void |
selectAllNodes()
Sets the selected state of all nodes in this CyNetwork to true |
boolean |
setEdgeAttributeValue(Edge edge,
String attribute,
Object value)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
boolean |
setEdgeAttributeValue(int edge,
String attribute,
Object value)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
void |
setExpressionData(ExpressionData newData)
Deprecated. Sets the expression data object associated with this network. |
void |
setFlagged(Edge edge,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedEdgeState(Collection,boolean) |
void |
setFlagged(Node node,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedNodeState(Collection,boolean) |
void |
setFlaggedEdges(Collection edges,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedEdgeState(Collection,boolean) |
void |
setFlaggedEdges(int[] edges,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedEdgeState(Collection,boolean) |
void |
setFlaggedNodes(Collection nodes,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedNodeState(Collection,boolean) |
void |
setFlaggedNodes(int[] nodes,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedNodeState(Collection,boolean) |
String |
setIdentifier(String new_id)
Can't Change |
void |
setNewGraphFrom(CyNetwork newNetwork,
boolean replaceAttributes)
Deprecated. |
boolean |
setNodeAttributeValue(int node,
String attribute,
Object value)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
boolean |
setNodeAttributeValue(Node node,
String attribute,
Object value)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
void |
setSelectedEdgeState(Collection edges,
boolean selected_state)
Sets the selected state of a collection of edges. |
void |
setSelectedNodeState(Collection nodes,
boolean selected_state)
Sets the selected state of a collection of nodes. |
void |
setTitle(String new_id)
Can Change |
void |
unFlagAllEdges()
Deprecated. As of 2.3, replaced by unselectAllEdges() |
void |
unFlagAllNodes()
Deprecated. As of 2.3, replaced by unselectAllNodes() |
void |
unselectAllEdges()
Sets the selected state of all edges in this CyNetwork to false |
void |
unselectAllNodes()
Sets the selected state of all nodes in this CyNetwork to false |
Method Detail |
public String getTitle()
public void setTitle(String new_id)
public String getIdentifier()
public String setIdentifier(String new_id)
public void appendNetwork(CyNetwork network)
public void setNewGraphFrom(CyNetwork newNetwork, boolean replaceAttributes)
appendNetwork(cytoscape.CyNetwork)
public void beginActivity(String callerID)
public void endActivity(String callerID)
public boolean isStateClear()
public void forceClear(String callerID)
public void addCyNetworkListener(CyNetworkListener listener)
public boolean removeCyNetworkListener(CyNetworkListener listener)
public Set getCyNetworkListeners()
public ExpressionData getExpressionData()
public void setExpressionData(ExpressionData newData)
public cytoscape.data.GraphObjAttributes getNodeAttributes()
Cytoscape.getNodeAttributes()
instead. This
method will be removed in September, 2006.
public cytoscape.data.GraphObjAttributes getEdgeAttributes()
Cytoscape.getEdgeAttributes()
instead. This
method will be removed in September, 2006.
public GraphPerspective getGraphPerspective()
public void flagAllNodes()
selectAllNodes()
public void flagAllEdges()
selectAllEdges()
public void unFlagAllNodes()
unselectAllNodes()
public void unFlagAllEdges()
unselectAllEdges()
public void setFlagged(Node node, boolean state)
setSelectedNodeState(Collection,boolean)
public void setFlaggedNodes(Collection nodes, boolean state)
setSelectedNodeState(Collection,boolean)
public void setFlaggedNodes(int[] nodes, boolean state)
setSelectedNodeState(Collection,boolean)
public void setFlagged(Edge edge, boolean state)
setSelectedEdgeState(Collection,boolean)
public void setFlaggedEdges(Collection edges, boolean state)
setSelectedEdgeState(Collection,boolean)
public void setFlaggedEdges(int[] edges, boolean state)
setSelectedEdgeState(Collection,boolean)
public boolean isFlagged(Node node)
isSelected(Node)
node
-
public boolean isFlagged(Edge edge)
isSelected(Edge)
edge
-
public Set getFlaggedNodes()
getSelectedNodes()
public Set getFlaggedEdges()
getSelectedEdges()
public int[] getFlaggedNodeIndicesArray()
getSelectedNodes()
public int[] getFlaggedEdgeIndicesArray()
getSelectedEdges()
public void addFlagEventListener(cytoscape.data.FlagEventListener listener)
listener
- public void removeFlagEventListener(cytoscape.data.FlagEventListener listener)
removeSelectEventListener(SelectEventListener)
listener
- public cytoscape.data.FlagFilter getFlagger()
getSelectFilter()
public void selectAllNodes()
public void selectAllEdges()
public void unselectAllNodes()
public void unselectAllEdges()
public void setSelectedNodeState(Collection nodes, boolean selected_state)
nodes
- a Collection of Nodesselected_state
- the desired selection state for the nodespublic void setSelectedEdgeState(Collection edges, boolean selected_state)
edges
- a Collection of Edgesselected_state
- the desired selection state for the edgespublic boolean isSelected(Node node)
node
- the node
public boolean isSelected(Edge edge)
edge
- the edge
public Set getSelectedNodes()
public Set getSelectedEdges()
public void addSelectEventListener(cytoscape.data.SelectEventListener listener)
listener
- public void removeSelectEventListener(cytoscape.data.SelectEventListener listener)
listener
- public cytoscape.data.SelectFilter getSelectFilter()
public Object getNodeAttributeValue(Node node, String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
node
- the given CyNodeattribute
- the name of the requested attribute
public Object getNodeAttributeValue(int node, String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
public Object getEdgeAttributeValue(Edge edge, String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
public Object getEdgeAttributeValue(int edge, String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
public String[] getNodeAttributesList()
CyAttributes
directly. This method will be
removed in September, 2006.
public String[] getNodeAttributesList(Node[] nodes)
CyAttributes
directly. This method will be
removed in September, 2006.
public String[] getEdgeAttributesList()
CyAttributes
directly. This method will be
removed in September, 2006.
public String[] getNodeAttributesList(Edge[] edges)
CyAttributes
directly. This method will be
removed in September, 2006.
public boolean setNodeAttributeValue(Node node, String attribute, Object value)
CyAttributes
directly. This method will be
removed in September, 2006.
node
- the given CyNodeattribute
- the name of the requested attributevalue
- the value to be set
public boolean setNodeAttributeValue(int node, String attribute, Object value)
CyAttributes
directly. This method will be
removed in September, 2006.
public boolean setEdgeAttributeValue(Edge edge, String attribute, Object value)
CyAttributes
directly. This method will be
removed in September, 2006.
public boolean setEdgeAttributeValue(int edge, String attribute, Object value)
CyAttributes
directly. This method will be
removed in September, 2006.
public void deleteNodeAttribute(String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
public void deleteEdgeAttribute(String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
public void putClientData(String data_name, Object data)
CyAttributes
directly. This method will be
removed in May, 2007.
public Collection getClientDataNames()
CyAttributes
directly. This method will be
removed in May, 2007.
public Object getClientData(String data_name)
CyAttributes
directly. This method will be
removed in May, 2007.
public int addNode(int cytoscape_node)
public CyNode addNode(Node cytoscape_node)
public boolean removeNode(int node_index, boolean set_remove)
set_remove
- true removes this node from all of Cytoscape, false lets it be
used by other CyNetworks
public int addEdge(int cytoscape_edge)
public CyEdge addEdge(Edge cytoscape_edge)
public boolean removeEdge(int edge_index, boolean set_remove)
set_remove
- true removes this edge from all of Cytoscape, false lets it be
used by other CyNetworks
|
www.cytoscape.org | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |