|
Cytoscape 2.2 (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)
|
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 |
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()
|
void |
flagAllNodes()
|
void |
forceClear(String callerID)
Deprecated. |
Object |
getClientData(String data_name)
Get Some client data |
Collection |
getClientDataNames()
Get a list of all currently available ClientData objects |
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. @see{getNetworkData} Returns the expression data object associated with this network. |
int[] |
getFlaggedEdgeIndicesArray()
|
Set |
getFlaggedEdges()
|
int[] |
getFlaggedNodeIndicesArray()
|
Set |
getFlaggedNodes()
|
cytoscape.data.FlagFilter |
getFlagger()
|
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. |
String |
getTitle()
Can Change |
boolean |
isFlagged(Edge edge)
|
boolean |
isFlagged(Node node)
|
boolean |
isStateClear()
Deprecated. |
void |
putClientData(String data_name,
Object data)
Networks can support client data. |
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)
|
boolean |
removeNode(int node_index,
boolean set_remove)
This will remove this node from the Network. |
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)
Flags a edge |
void |
setFlagged(Node node,
boolean state)
Flags a node |
void |
setFlaggedEdges(Collection edges,
boolean state)
Flag a group of edge |
void |
setFlaggedEdges(int[] edges,
boolean state)
Flag a group of edges using their indices |
void |
setFlaggedNodes(Collection nodes,
boolean state)
Flag a group of node |
void |
setFlaggedNodes(int[] nodes,
boolean state)
Flag a group of nodes using their indices |
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 |
setTitle(String new_id)
Can Change |
void |
unFlagAllEdges()
|
void |
unFlagAllNodes()
|
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()
public void flagAllEdges()
public void unFlagAllNodes()
public void unFlagAllEdges()
public void setFlagged(Node node, boolean state)
public void setFlaggedNodes(Collection nodes, boolean state)
public void setFlaggedNodes(int[] nodes, boolean state)
public void setFlagged(Edge edge, boolean state)
public void setFlaggedEdges(Collection edges, boolean state)
public void setFlaggedEdges(int[] edges, boolean state)
public boolean isFlagged(Node node)
public boolean isFlagged(Edge edge)
public Set getFlaggedNodes()
public Set getFlaggedEdges()
public int[] getFlaggedNodeIndicesArray()
public int[] getFlaggedEdgeIndicesArray()
public void addFlagEventListener(cytoscape.data.FlagEventListener listener)
public void removeFlagEventListener(cytoscape.data.FlagEventListener listener)
public cytoscape.data.FlagFilter getFlagger()
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)
data_name
- the name of this client datapublic Collection getClientDataNames()
public Object getClientData(String data_name)
data_name
- the data to getpublic 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 |