|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fing.model.FingExtensibleGraphPerspective cytoscape.giny.FingCyNetwork
public class FingCyNetwork
FinhCyNetwork provides an implementation of the CyNetwork interface, as well as the GraphPerspective inteface, and also provides the functionality formally provided by GraphObjAttributes. The Network will notify listeners when nodes/edges are added/removed and when relavant data changes.
Field Summary |
---|
Fields inherited from interface cytoscape.graph.fixed.FixedGraph |
---|
DIRECTED_EDGE, UNDIRECTED_EDGE |
Constructor Summary | |
---|---|
FingCyNetwork(FingExtensibleRootGraph root,
IntIterator rootGraphNodeInx,
IntIterator rootGraphEdgeInx)
rootGraphNodeInx need not contain all endpoint nodes corresponding to edges in rootGraphEdgeInx - this is calculated automatically by this constructor. |
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 |
int |
addEdge(String attribute,
Object value)
Adds a edge to this Network, by looking it up via the given attribute and value |
void |
addGraphPerspectiveChangeListener(GraphPerspectiveChangeListener listener)
DOCUMENT ME! |
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 |
int |
addNode(String attribute,
Object value)
Adds a node to this Network, by looking it up via the given attribute and value |
void |
addSelectEventListener(SelectEventListener listener)
Adds a listener for SelectEvents to this CyNetwork |
void |
appendNetwork(CyNetwork network)
Appends all of the nodes and edges in teh given Network to this Network |
Object |
clone()
DOCUMENT ME! |
boolean |
containsEdge(Edge edge)
DOCUMENT ME! |
boolean |
containsEdge(Edge edge,
boolean recurse)
DOCUMENT ME! |
boolean |
containsNode(Node node)
DOCUMENT ME! |
boolean |
containsNode(Node node,
boolean recurse)
DOCUMENT ME! |
int |
createEdge(int source,
int target,
boolean directed)
This method will create a new edge. |
GraphPerspective |
createGraphPerspective(Filter filter)
DOCUMENT ME! |
GraphPerspective |
createGraphPerspective(int[] nodeInx)
DOCUMENT ME! |
GraphPerspective |
createGraphPerspective(int[] rootGraphNodeInx,
int[] rootGraphEdgeInx)
DOCUMENT ME! |
GraphPerspective |
createGraphPerspective(Node[] nodes,
Edge[] edges)
DOCUMENT ME! |
int |
createNode()
This method will create a new node. |
void |
deleteEdgeAttribute(String attribute)
Deletes the attribute with the given name from edge attributes |
void |
deleteNodeAttribute(String attribute)
Deletes the attribute with the given name from node attributes |
boolean |
edgeExists(int fromNodeInx,
int toNodeInx)
DOCUMENT ME! |
boolean |
edgeExists(Node from,
Node to)
DOCUMENT ME! |
List |
edgeMetaChildrenList(int parentNodeInx)
DOCUMENT ME! |
List |
edgeMetaChildrenList(Node node)
DOCUMENT ME! |
List |
edgeMetaParentsList(int edgeInx)
DOCUMENT ME! |
IntEnumerator |
edges()
DOCUMENT ME! |
IntEnumerator |
edgesAdjacent(int node,
boolean outgoing,
boolean incoming,
boolean undirected)
DOCUMENT ME! |
IntIterator |
edgesConnecting(int node0,
int node1,
boolean outgoing,
boolean incoming,
boolean undirected)
DOCUMENT ME! |
Iterator |
edgesIterator()
DOCUMENT ME! |
List |
edgesList()
DOCUMENT ME! |
List |
edgesList(int fromNodeInx,
int toNodeInx,
boolean includeUndirectedEdges)
DOCUMENT ME! |
List |
edgesList(Node from,
Node to)
DOCUMENT ME! |
int |
edgeSource(int edge)
DOCUMENT ME! |
int |
edgeTarget(int edge)
DOCUMENT ME! |
byte |
edgeType(int edge)
DOCUMENT ME! |
void |
finalize()
DOCUMENT ME! |
int[] |
getAdjacentEdgeIndicesArray(int nodeInx,
boolean undirected,
boolean incomingDirected,
boolean outgoingDirected)
DOCUMENT ME! |
List |
getAdjacentEdgesList(Node node,
boolean undirected,
boolean incoming,
boolean outgoing)
DOCUMENT ME! |
Object |
getClientData(String data_name)
Deprecated. Get Some client data |
Collection |
getClientDataNames()
Deprecated. Get a list of all currently available ClientData objects |
int[] |
getConnectingEdgeIndicesArray(int[] nodeInx)
DOCUMENT ME! |
List |
getConnectingEdges(List nodes)
DOCUMENT ME! |
int[] |
getConnectingNodeIndicesArray(int[] edgeInx)
DOCUMENT ME! |
Set |
getCyNetworkListeners()
Returns the set of listeners registered with this object. |
int |
getDegree(int nodeInx)
DOCUMENT ME! |
int |
getDegree(Node node)
DOCUMENT ME! |
Edge |
getEdge(int rootGraphEdgeInx)
DOCUMENT ME! |
String[] |
getEdgeAttributesList()
Return all availble Attributes for the Edges in this CyNetwork |
Object |
getEdgeAttributeValue(Edge edge,
String attribute)
Return the requested Attribute for the given Edge |
Object |
getEdgeAttributeValue(int edge,
String attribute)
Return the requested Attribute for the given Edge |
int |
getEdgeCount()
DOCUMENT ME! |
int |
getEdgeCount(int fromNodeInx,
int toNodeInx,
boolean countUndirectedEdges)
DOCUMENT ME! |
int |
getEdgeCount(Node from,
Node to,
boolean countUndirectedEdges)
DOCUMENT ME! |
int |
getEdgeIndex(int rootGraphEdgeInx)
DOCUMENT ME! |
int[] |
getEdgeIndicesArray()
DOCUMENT ME! |
int[] |
getEdgeIndicesArray(int fromNodeInx,
int toNodeInx,
boolean includeUndirectedEdges)
DOCUMENT ME! |
int[] |
getEdgeIndicesArray(int rootGraphFromNodeInx,
int rootGraphToNodeInx,
boolean undirectedEdges,
boolean bothDirections)
DOCUMENT ME! |
int[] |
getEdgeMetaChildIndicesArray(int parentNodeInx)
DOCUMENT ME! |
int[] |
getEdgeMetaParentIndicesArray(int edgeInx)
DOCUMENT ME! |
int |
getEdgeSourceIndex(int edgeInx)
DOCUMENT ME! |
int |
getEdgeTargetIndex(int edgeInx)
DOCUMENT ME! |
String |
getIdentifier()
DOCUMENT ME! |
int |
getInDegree(int nodeInx)
DOCUMENT ME! |
int |
getInDegree(int nodeInx,
boolean countUndirectedEdges)
DOCUMENT ME! |
int |
getInDegree(Node node)
DOCUMENT ME! |
int |
getInDegree(Node node,
boolean countUndirectedEdges)
DOCUMENT ME! |
int |
getIndex(Edge edge)
DOCUMENT ME! |
int |
getIndex(Node node)
DOCUMENT ME! |
Node |
getNode(int rootGraphNodeInx)
DOCUMENT ME! |
String[] |
getNodeAttributesList()
Return all availble Attributes for the Nodes in this CyNetwork |
String[] |
getNodeAttributesList(Edge[] edges)
Return all available Attributes for the given Edges |
String[] |
getNodeAttributesList(Node[] nodes)
Return all available Attributes for the given Nodes |
Object |
getNodeAttributeValue(int node,
String attribute)
Return the requested Attribute for the given Node |
Object |
getNodeAttributeValue(Node node,
String attribute)
Return the requested Attribute for the given Node |
int |
getNodeCount()
DOCUMENT ME! |
int |
getNodeIndex(int rootGraphNodeInx)
DOCUMENT ME! |
int[] |
getNodeIndicesArray()
DOCUMENT ME! |
int[] |
getNodeMetaChildIndicesArray(int parentInx)
DOCUMENT ME! |
int[] |
getNodeMetaParentIndicesArray(int nodeInx)
DOCUMENT ME! |
int |
getOutDegree(int nodeInx)
DOCUMENT ME! |
int |
getOutDegree(int nodeInx,
boolean countUndirectedEdges)
DOCUMENT ME! |
int |
getOutDegree(Node node)
DOCUMENT ME! |
int |
getOutDegree(Node node,
boolean countUndirectedEdges)
DOCUMENT ME! |
RootGraph |
getRootGraph()
DOCUMENT ME! |
int |
getRootGraphEdgeIndex(int rootGraphEdgeInx)
DOCUMENT ME! |
int |
getRootGraphNodeIndex(int rootGraphNodeInx)
DOCUMENT ME! |
Set |
getSelectedEdges()
Returns the set of selected edges in this CyNetwork |
Set |
getSelectedNodes()
Returns the set of selected nodes in this CyNetwork |
SelectFilter |
getSelectFilter()
|
String |
getTitle()
Can Change |
Edge |
hideEdge(Edge edge)
DOCUMENT ME! |
int |
hideEdge(int rootGraphEdgeInx)
DOCUMENT ME! |
int[] |
hideEdges(int[] rootGraphEdgeInx)
DOCUMENT ME! |
List |
hideEdges(List edges)
DOCUMENT ME! |
int |
hideNode(int rootGraphNodeInx)
DOCUMENT ME! |
Node |
hideNode(Node node)
DOCUMENT ME! |
int[] |
hideNodes(int[] rootGraphNodeInx)
DOCUMENT ME! |
List |
hideNodes(List nodes)
DOCUMENT ME! |
boolean |
isEdgeDirected(int edgeInx)
DOCUMENT ME! |
boolean |
isEdgeMetaChild(int parentNodeInx,
int childEdgeInx)
DOCUMENT ME! |
boolean |
isEdgeMetaParent(int childEdgeInx,
int parentNodeInx)
DOCUMENT ME! |
boolean |
isMetaChild(Node parent,
Edge child)
DOCUMENT ME! |
boolean |
isMetaChild(Node parent,
Node child)
DOCUMENT ME! |
boolean |
isMetaParent(Edge child,
Node parent)
DOCUMENT ME! |
boolean |
isMetaParent(Node child,
Node parent)
DOCUMENT ME! |
boolean |
isNeighbor(int nodeInxA,
int nodeInxB)
DOCUMENT ME! |
boolean |
isNeighbor(Node a,
Node b)
DOCUMENT ME! |
boolean |
isNodeMetaChild(int parentNodeInx,
int childNodeInx)
DOCUMENT ME! |
boolean |
isNodeMetaParent(int childNodeInx,
int parentNodeInx)
DOCUMENT ME! |
boolean |
isSelected(Edge edge)
Returns the selected state of the given edge. |
boolean |
isSelected(Node node)
Returns the selected state of the given node. |
GraphPerspective |
join(GraphPerspective persp)
DOCUMENT ME! |
List |
metaParentsList(Edge edge)
DOCUMENT ME! |
List |
metaParentsList(Node node)
DOCUMENT ME! |
int[] |
neighborsArray(int nodeIndex)
DOCUMENT ME! |
List |
neighborsList(Node node)
DOCUMENT ME! |
boolean |
nodeExists(int node)
DOCUMENT ME! |
List |
nodeMetaChildrenList(int parentInx)
DOCUMENT ME! |
List |
nodeMetaChildrenList(Node node)
DOCUMENT ME! |
List |
nodeMetaParentsList(int nodeInx)
DOCUMENT ME! |
IntEnumerator |
nodes()
DOCUMENT ME! |
Iterator |
nodesIterator()
DOCUMENT ME! |
List |
nodesList()
DOCUMENT ME! |
void |
putClientData(String data_name,
Object data)
Deprecated. 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 force)
This will remove this edge from the Network. |
void |
removeGraphPerspectiveChangeListener(GraphPerspectiveChangeListener listener)
DOCUMENT ME! |
boolean |
removeNode(int node_index,
boolean force)
This will remove this node from the Network. |
void |
removeSelectEventListener(SelectEventListener listener)
Removes a listener for SelectEvents from this CyNetwork |
Edge |
restoreEdge(Edge edge)
DOCUMENT ME! |
int |
restoreEdge(int rootGraphEdgeInx)
DOCUMENT ME! |
int[] |
restoreEdges(int[] rootGraphEdgeInx)
DOCUMENT ME! |
List |
restoreEdges(List edges)
DOCUMENT ME! |
int |
restoreNode(int rootGraphNodeInx)
DOCUMENT ME! |
Node |
restoreNode(Node node)
DOCUMENT ME! |
int[] |
restoreNodes(int[] rootGraphNodeInx)
DOCUMENT ME! |
int[] |
restoreNodes(int[] rootGraphNodeInx,
boolean restoreIncidentEdges)
DOCUMENT ME! |
List |
restoreNodes(List nodes)
DOCUMENT ME! |
List |
restoreNodes(List nodes,
boolean restoreIncidentEdges)
DOCUMENT ME! |
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)
Return the requested Attribute for the given Edge |
boolean |
setEdgeAttributeValue(int edge,
String attribute,
Object value)
Return the requested Attribute for the given Edge |
String |
setIdentifier(String new_id)
DOCUMENT ME! |
boolean |
setNodeAttributeValue(int node,
String attribute,
Object value)
Return the requested Attribute for the given Node |
boolean |
setNodeAttributeValue(Node node,
String attribute,
Object value)
Return the requested Attribute for the given Node |
void |
setSelectedEdgeState(Collection edges,
boolean selected_state)
Sets the selected state of a collection of edges. |
void |
setSelectedEdgeState(Edge edge,
boolean selected_state)
Sets the selected state of an edge. |
void |
setSelectedNodeState(Collection nodes,
boolean selected_state)
Sets the selected state of a collection of nodes. |
void |
setSelectedNodeState(Node node,
boolean selected_state)
Sets the selected state of a node. |
void |
setTitle(String new_id)
Can Change Throws a PropertyChangeEvent if the title has changed with a CyNetworkTitleChange object that contains the network id and the name. |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FingCyNetwork(FingExtensibleRootGraph root, IntIterator rootGraphNodeInx, IntIterator rootGraphEdgeInx)
Method Detail |
---|
public String getTitle()
getTitle
in interface CyNetwork
public void setTitle(String new_id)
setTitle
in interface CyNetwork
public String getIdentifier()
getIdentifier
in interface CyNetwork
public String setIdentifier(String new_id)
setIdentifier
in interface CyNetwork
new_id
- DOCUMENT ME!
public void putClientData(String data_name, Object data)
CyNetwork
putClientData
in interface CyNetwork
data_name
- the name of this client datapublic Collection getClientDataNames()
CyNetwork
getClientDataNames
in interface CyNetwork
public Object getClientData(String data_name)
CyNetwork
getClientData
in interface CyNetwork
data_name
- the data to getpublic void appendNetwork(CyNetwork network)
appendNetwork
in interface CyNetwork
public void selectAllNodes()
selectAllNodes
in interface CyNetwork
public void selectAllEdges()
selectAllEdges
in interface CyNetwork
public void unselectAllNodes()
unselectAllNodes
in interface CyNetwork
public void unselectAllEdges()
unselectAllEdges
in interface CyNetwork
public void setSelectedNodeState(Collection nodes, boolean selected_state)
setSelectedNodeState
in interface CyNetwork
nodes
- a Collection of Nodesselected_state
- the desired selection state for the nodespublic void setSelectedNodeState(Node node, boolean selected_state)
setSelectedNodeState
in interface CyNetwork
nodes
- a Nodeselected_state
- the desired selection state for the nodepublic void setSelectedEdgeState(Collection edges, boolean selected_state)
setSelectedEdgeState
in interface CyNetwork
edges
- a Collection of Edgesselected_state
- the desired selection state for the edgespublic void setSelectedEdgeState(Edge edge, boolean selected_state)
setSelectedEdgeState
in interface CyNetwork
edges
- an Edgeselected_state
- the desired selection state for the edgepublic boolean isSelected(Node node)
isSelected
in interface CyNetwork
node
- the node
public boolean isSelected(Edge edge)
isSelected
in interface CyNetwork
edge
- the edge
public Set getSelectedNodes()
getSelectedNodes
in interface CyNetwork
public Set getSelectedEdges()
getSelectedEdges
in interface CyNetwork
public void addSelectEventListener(SelectEventListener listener)
addSelectEventListener
in interface CyNetwork
listener
- public void removeSelectEventListener(SelectEventListener listener)
removeSelectEventListener
in interface CyNetwork
listener
- public SelectFilter getSelectFilter()
getSelectFilter
in interface CyNetwork
public Object getNodeAttributeValue(Node node, String attribute)
node
- the given CyNodeattribute
- the name of the requested attribute
public Object getNodeAttributeValue(int node, String attribute)
public Object getEdgeAttributeValue(Edge edge, String attribute)
public Object getEdgeAttributeValue(int edge, String attribute)
public String[] getNodeAttributesList()
public String[] getNodeAttributesList(Node[] nodes)
public String[] getEdgeAttributesList()
public String[] getNodeAttributesList(Edge[] edges)
public boolean setNodeAttributeValue(Node node, String attribute, Object value)
node
- the given CyNodeattribute
- the name of the requested attributevalue
- the value to be set
public boolean setNodeAttributeValue(int node, String attribute, Object value)
public boolean setEdgeAttributeValue(Edge edge, String attribute, Object value)
public boolean setEdgeAttributeValue(int edge, String attribute, Object value)
public void deleteNodeAttribute(String attribute)
public void deleteEdgeAttribute(String attribute)
public void addCyNetworkListener(CyNetworkListener listener)
addCyNetworkListener
in interface CyNetwork
public boolean removeCyNetworkListener(CyNetworkListener listener)
removeCyNetworkListener
in interface CyNetwork
public Set getCyNetworkListeners()
getCyNetworkListeners
in interface CyNetwork
public int createNode()
public int addNode(int cytoscape_node)
addNode
in interface CyNetwork
public CyNode addNode(Node cytoscape_node)
addNode
in interface CyNetwork
public int addNode(String attribute, Object value)
public boolean removeNode(int node_index, boolean force)
removeNode
in interface CyNetwork
force
- force this node to be removed from all Networks
public int createEdge(int source, int target, boolean directed)
source
- the source nodetarget
- the target nodedirected
- weather the edge should be directed
public int addEdge(int cytoscape_edge)
addEdge
in interface CyNetwork
public CyEdge addEdge(Edge cytoscape_edge)
addEdge
in interface CyNetwork
public int addEdge(String attribute, Object value)
public boolean removeEdge(int edge_index, boolean force)
removeEdge
in interface CyNetwork
force
- force this edge to be removed from all Networks
public IntEnumerator nodes()
nodes
in interface cytoscape.graph.fixed.FixedGraph
public IntEnumerator edges()
edges
in interface cytoscape.graph.fixed.FixedGraph
public boolean nodeExists(int node)
nodeExists
in interface cytoscape.graph.fixed.FixedGraph
node
- DOCUMENT ME!
public byte edgeType(int edge)
edgeType
in interface cytoscape.graph.fixed.FixedGraph
edge
- DOCUMENT ME!
public int edgeSource(int edge)
edgeSource
in interface cytoscape.graph.fixed.FixedGraph
edge
- DOCUMENT ME!
public int edgeTarget(int edge)
edgeTarget
in interface cytoscape.graph.fixed.FixedGraph
edge
- DOCUMENT ME!
public IntEnumerator edgesAdjacent(int node, boolean outgoing, boolean incoming, boolean undirected)
edgesAdjacent
in interface cytoscape.graph.fixed.FixedGraph
node
- DOCUMENT ME!outgoing
- DOCUMENT ME!incoming
- DOCUMENT ME!undirected
- DOCUMENT ME!
public IntIterator edgesConnecting(int node0, int node1, boolean outgoing, boolean incoming, boolean undirected)
edgesConnecting
in interface cytoscape.graph.fixed.FixedGraph
node0
- DOCUMENT ME!node1
- DOCUMENT ME!outgoing
- DOCUMENT ME!incoming
- DOCUMENT ME!undirected
- DOCUMENT ME!
public void addGraphPerspectiveChangeListener(GraphPerspectiveChangeListener listener)
addGraphPerspectiveChangeListener
in interface GraphPerspective
listener
- DOCUMENT ME!public void removeGraphPerspectiveChangeListener(GraphPerspectiveChangeListener listener)
removeGraphPerspectiveChangeListener
in interface GraphPerspective
listener
- DOCUMENT ME!public Object clone()
clone
in interface GraphPerspective
clone
in class Object
public RootGraph getRootGraph()
getRootGraph
in interface GraphPerspective
public int getNodeCount()
getNodeCount
in interface GraphPerspective
public int getEdgeCount()
getEdgeCount
in interface GraphPerspective
public Iterator nodesIterator()
nodesIterator
in interface GraphPerspective
public List nodesList()
nodesList
in interface GraphPerspective
GraphPerspective.nodesIterator()
public int[] getNodeIndicesArray()
getNodeIndicesArray
in interface GraphPerspective
GraphPerspective.nodesIterator()
,
GraphObject.getRootGraphIndex()
public Iterator edgesIterator()
edgesIterator
in interface GraphPerspective
public List edgesList()
edgesList
in interface GraphPerspective
GraphPerspective.edgesIterator()
public int[] getEdgeIndicesArray()
getEdgeIndicesArray
in interface GraphPerspective
GraphPerspective.edgesIterator()
,
GraphObject.getRootGraphIndex()
public int[] getEdgeIndicesArray(int rootGraphFromNodeInx, int rootGraphToNodeInx, boolean undirectedEdges, boolean bothDirections)
getEdgeIndicesArray
in interface GraphPerspective
rootGraphFromNodeInx
- DOCUMENT ME!rootGraphToNodeInx
- DOCUMENT ME!undirectedEdges
- DOCUMENT ME!bothDirections
- DOCUMENT ME!
GraphPerspective.getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public Node hideNode(Node node)
hideNode
in interface GraphPerspective
node
- DOCUMENT ME!
public int hideNode(int rootGraphNodeInx)
hideNode
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!
public List hideNodes(List nodes)
hideNodes
in interface GraphPerspective
nodes
- DOCUMENT ME!
GraphPerspective.hideNode(Node)
,
GraphPerspective.hideNodes(int[])
public int[] hideNodes(int[] rootGraphNodeInx)
hideNodes
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!
public Node restoreNode(Node node)
restoreNode
in interface GraphPerspective
node
- DOCUMENT ME!
public int restoreNode(int rootGraphNodeInx)
restoreNode
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!
public List restoreNodes(List nodes)
restoreNodes
in interface GraphPerspective
nodes
- DOCUMENT ME!
GraphPerspective.restoreNode(Node)
,
GraphPerspective.restoreNodes(int[])
public List restoreNodes(List nodes, boolean restoreIncidentEdges)
restoreNodes
in interface GraphPerspective
nodes
- DOCUMENT ME!restoreIncidentEdges
- DOCUMENT ME!
GraphPerspective.restoreNodes(int[])
,
GraphPerspective.restoreEdges(int[])
,
RootGraph.getConnectingEdgeIndicesArray(int[])
public int[] restoreNodes(int[] rootGraphNodeInx, boolean restoreIncidentEdges)
restoreNodes
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!restoreIncidentEdges
- DOCUMENT ME!
GraphPerspective.restoreNodes(int[])
,
GraphPerspective.restoreEdges(int[])
,
RootGraph.getConnectingEdgeIndicesArray(int[])
public int[] restoreNodes(int[] rootGraphNodeInx)
restoreNodes
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!
public Edge hideEdge(Edge edge)
hideEdge
in interface GraphPerspective
edge
- DOCUMENT ME!
public int hideEdge(int rootGraphEdgeInx)
hideEdge
in interface GraphPerspective
rootGraphEdgeInx
- DOCUMENT ME!
public List hideEdges(List edges)
hideEdges
in interface GraphPerspective
edges
- DOCUMENT ME!
GraphPerspective.hideEdge(Edge)
,
GraphPerspective.hideEdges(int[])
public int[] hideEdges(int[] rootGraphEdgeInx)
hideEdges
in interface GraphPerspective
rootGraphEdgeInx
- DOCUMENT ME!
public Edge restoreEdge(Edge edge)
restoreEdge
in interface GraphPerspective
edge
- DOCUMENT ME!
public int restoreEdge(int rootGraphEdgeInx)
restoreEdge
in interface GraphPerspective
rootGraphEdgeInx
- DOCUMENT ME!
public List restoreEdges(List edges)
restoreEdges
in interface GraphPerspective
edges
- DOCUMENT ME!
GraphPerspective.restoreEdges(int[])
public int[] restoreEdges(int[] rootGraphEdgeInx)
restoreEdges
in interface GraphPerspective
rootGraphEdgeInx
- DOCUMENT ME!
public boolean containsNode(Node node)
containsNode
in interface GraphPerspective
node
- DOCUMENT ME!
GraphPerspective.containsNode(Node, boolean)
public boolean containsNode(Node node, boolean recurse)
containsNode
in interface GraphPerspective
node
- DOCUMENT ME!recurse
- DOCUMENT ME!
public boolean containsEdge(Edge edge)
containsEdge
in interface GraphPerspective
edge
- DOCUMENT ME!
public boolean containsEdge(Edge edge, boolean recurse)
containsEdge
in interface GraphPerspective
edge
- DOCUMENT ME!recurse
- DOCUMENT ME!
public GraphPerspective join(GraphPerspective persp)
join
in interface GraphPerspective
persp
- DOCUMENT ME!
public GraphPerspective createGraphPerspective(Node[] nodes, Edge[] edges)
createGraphPerspective
in interface GraphPerspective
nodes
- DOCUMENT ME!edges
- DOCUMENT ME!
RootGraph.createGraphPerspective(int[], int[])
public GraphPerspective createGraphPerspective(int[] rootGraphNodeInx, int[] rootGraphEdgeInx)
createGraphPerspective
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!rootGraphEdgeInx
- DOCUMENT ME!
RootGraph.createGraphPerspective(int[], int[])
public GraphPerspective createGraphPerspective(Filter filter)
createGraphPerspective
in interface GraphPerspective
filter
- DOCUMENT ME!
public List neighborsList(Node node)
neighborsList
in interface GraphPerspective
node
- DOCUMENT ME!
GraphPerspective.neighborsArray(int)
public int[] neighborsArray(int nodeIndex)
neighborsArray
in interface GraphPerspective
nodeIndex
- DOCUMENT ME!
public boolean isNeighbor(Node a, Node b)
isNeighbor
in interface GraphPerspective
a
- DOCUMENT ME!b
- DOCUMENT ME!
public boolean isNeighbor(int nodeInxA, int nodeInxB)
isNeighbor
in interface GraphPerspective
nodeInxA
- DOCUMENT ME!nodeInxB
- DOCUMENT ME!
public boolean edgeExists(Node from, Node to)
edgeExists
in interface GraphPerspective
from
- DOCUMENT ME!to
- DOCUMENT ME!
public boolean edgeExists(int fromNodeInx, int toNodeInx)
edgeExists
in interface GraphPerspective
fromNodeInx
- DOCUMENT ME!toNodeInx
- DOCUMENT ME!
public int getEdgeCount(Node from, Node to, boolean countUndirectedEdges)
getEdgeCount
in interface GraphPerspective
from
- DOCUMENT ME!to
- DOCUMENT ME!countUndirectedEdges
- DOCUMENT ME!
public int getEdgeCount(int fromNodeInx, int toNodeInx, boolean countUndirectedEdges)
getEdgeCount
in interface GraphPerspective
fromNodeInx
- DOCUMENT ME!toNodeInx
- DOCUMENT ME!countUndirectedEdges
- DOCUMENT ME!
public List edgesList(Node from, Node to)
edgesList
in interface GraphPerspective
from
- DOCUMENT ME!to
- DOCUMENT ME!
public List edgesList(int fromNodeInx, int toNodeInx, boolean includeUndirectedEdges)
edgesList
in interface GraphPerspective
fromNodeInx
- DOCUMENT ME!toNodeInx
- DOCUMENT ME!includeUndirectedEdges
- DOCUMENT ME!
GraphPerspective.getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int[] getEdgeIndicesArray(int fromNodeInx, int toNodeInx, boolean includeUndirectedEdges)
getEdgeIndicesArray
in interface GraphPerspective
fromNodeInx
- DOCUMENT ME!toNodeInx
- DOCUMENT ME!includeUndirectedEdges
- DOCUMENT ME!
GraphPerspective.getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int getInDegree(Node node)
getInDegree
in interface GraphPerspective
node
- DOCUMENT ME!
public int getInDegree(int nodeInx)
getInDegree
in interface GraphPerspective
nodeInx
- DOCUMENT ME!
public int getInDegree(Node node, boolean countUndirectedEdges)
getInDegree
in interface GraphPerspective
node
- DOCUMENT ME!countUndirectedEdges
- DOCUMENT ME!
public int getInDegree(int nodeInx, boolean countUndirectedEdges)
getInDegree
in interface GraphPerspective
nodeInx
- DOCUMENT ME!countUndirectedEdges
- DOCUMENT ME!
public int getOutDegree(Node node)
getOutDegree
in interface GraphPerspective
node
- DOCUMENT ME!
public int getOutDegree(int nodeInx)
getOutDegree
in interface GraphPerspective
nodeInx
- DOCUMENT ME!
public int getOutDegree(Node node, boolean countUndirectedEdges)
getOutDegree
in interface GraphPerspective
node
- DOCUMENT ME!countUndirectedEdges
- DOCUMENT ME!
public int getOutDegree(int nodeInx, boolean countUndirectedEdges)
getOutDegree
in interface GraphPerspective
nodeInx
- DOCUMENT ME!countUndirectedEdges
- DOCUMENT ME!
public int getDegree(Node node)
getDegree
in interface GraphPerspective
node
- DOCUMENT ME!
public int getDegree(int nodeInx)
getDegree
in interface GraphPerspective
nodeInx
- DOCUMENT ME!
public int getIndex(Node node)
getIndex
in interface GraphPerspective
node
- DOCUMENT ME!
public int getNodeIndex(int rootGraphNodeInx)
getNodeIndex
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!
GraphPerspective.getRootGraphNodeIndex(int)
public int getRootGraphNodeIndex(int rootGraphNodeInx)
getRootGraphNodeIndex
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!
public Node getNode(int rootGraphNodeInx)
getNode
in interface GraphPerspective
rootGraphNodeInx
- DOCUMENT ME!
public int getIndex(Edge edge)
getIndex
in interface GraphPerspective
edge
- DOCUMENT ME!
public int getEdgeIndex(int rootGraphEdgeInx)
getEdgeIndex
in interface GraphPerspective
rootGraphEdgeInx
- DOCUMENT ME!
GraphPerspective.getRootGraphEdgeIndex(int)
public int getRootGraphEdgeIndex(int rootGraphEdgeInx)
getRootGraphEdgeIndex
in interface GraphPerspective
rootGraphEdgeInx
- DOCUMENT ME!
public Edge getEdge(int rootGraphEdgeInx)
getEdge
in interface GraphPerspective
rootGraphEdgeInx
- DOCUMENT ME!
public int getEdgeSourceIndex(int edgeInx)
getEdgeSourceIndex
in interface GraphPerspective
edgeInx
- DOCUMENT ME!
public int getEdgeTargetIndex(int edgeInx)
getEdgeTargetIndex
in interface GraphPerspective
edgeInx
- DOCUMENT ME!
public boolean isEdgeDirected(int edgeInx)
isEdgeDirected
in interface GraphPerspective
edgeInx
- DOCUMENT ME!
public boolean isMetaParent(Node child, Node parent)
isMetaParent
in interface GraphPerspective
child
- DOCUMENT ME!parent
- DOCUMENT ME!
public boolean isNodeMetaParent(int childNodeInx, int parentNodeInx)
isNodeMetaParent
in interface GraphPerspective
childNodeInx
- DOCUMENT ME!parentNodeInx
- DOCUMENT ME!
public List metaParentsList(Node node)
metaParentsList
in interface GraphPerspective
node
- DOCUMENT ME!
public List nodeMetaParentsList(int nodeInx)
nodeMetaParentsList
in interface GraphPerspective
nodeInx
- DOCUMENT ME!
public int[] getNodeMetaParentIndicesArray(int nodeInx)
getNodeMetaParentIndicesArray
in interface GraphPerspective
nodeInx
- DOCUMENT ME!
public boolean isMetaChild(Node parent, Node child)
isMetaChild
in interface GraphPerspective
parent
- DOCUMENT ME!child
- DOCUMENT ME!
public boolean isNodeMetaChild(int parentNodeInx, int childNodeInx)
isNodeMetaChild
in interface GraphPerspective
parentNodeInx
- DOCUMENT ME!childNodeInx
- DOCUMENT ME!
public List nodeMetaChildrenList(Node node)
nodeMetaChildrenList
in interface GraphPerspective
node
- DOCUMENT ME!
public List nodeMetaChildrenList(int parentInx)
nodeMetaChildrenList
in interface GraphPerspective
parentInx
- DOCUMENT ME!
public int[] getNodeMetaChildIndicesArray(int parentInx)
getNodeMetaChildIndicesArray
in interface GraphPerspective
parentInx
- DOCUMENT ME!
public boolean isMetaParent(Edge child, Node parent)
isMetaParent
in interface GraphPerspective
child
- DOCUMENT ME!parent
- DOCUMENT ME!
public boolean isEdgeMetaParent(int childEdgeInx, int parentNodeInx)
isEdgeMetaParent
in interface GraphPerspective
childEdgeInx
- DOCUMENT ME!parentNodeInx
- DOCUMENT ME!
public List metaParentsList(Edge edge)
metaParentsList
in interface GraphPerspective
edge
- DOCUMENT ME!
public List edgeMetaParentsList(int edgeInx)
edgeMetaParentsList
in interface GraphPerspective
edgeInx
- DOCUMENT ME!
public int[] getEdgeMetaParentIndicesArray(int edgeInx)
getEdgeMetaParentIndicesArray
in interface GraphPerspective
edgeInx
- DOCUMENT ME!
public boolean isMetaChild(Node parent, Edge child)
isMetaChild
in interface GraphPerspective
parent
- DOCUMENT ME!child
- DOCUMENT ME!
public boolean isEdgeMetaChild(int parentNodeInx, int childEdgeInx)
isEdgeMetaChild
in interface GraphPerspective
parentNodeInx
- DOCUMENT ME!childEdgeInx
- DOCUMENT ME!
public List edgeMetaChildrenList(Node node)
edgeMetaChildrenList
in interface GraphPerspective
node
- DOCUMENT ME!
public List edgeMetaChildrenList(int parentNodeInx)
edgeMetaChildrenList
in interface GraphPerspective
parentNodeInx
- DOCUMENT ME!
public int[] getEdgeMetaChildIndicesArray(int parentNodeInx)
getEdgeMetaChildIndicesArray
in interface GraphPerspective
parentNodeInx
- DOCUMENT ME!
public List getAdjacentEdgesList(Node node, boolean undirected, boolean incoming, boolean outgoing)
getAdjacentEdgesList
in interface GraphPerspective
node
- DOCUMENT ME!undirected
- DOCUMENT ME!incoming
- DOCUMENT ME!outgoing
- DOCUMENT ME!
GraphPerspective.getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int[] getAdjacentEdgeIndicesArray(int nodeInx, boolean undirected, boolean incomingDirected, boolean outgoingDirected)
getAdjacentEdgeIndicesArray
in interface GraphPerspective
nodeInx
- DOCUMENT ME!undirected
- DOCUMENT ME!incomingDirected
- DOCUMENT ME!outgoingDirected
- DOCUMENT ME!
public List getConnectingEdges(List nodes)
getConnectingEdges
in interface GraphPerspective
nodes
- DOCUMENT ME!
public int[] getConnectingEdgeIndicesArray(int[] nodeInx)
getConnectingEdgeIndicesArray
in interface GraphPerspective
nodeInx
- DOCUMENT ME!
public int[] getConnectingNodeIndicesArray(int[] edgeInx)
getConnectingNodeIndicesArray
in interface GraphPerspective
edgeInx
- DOCUMENT ME!
GraphPerspective.getEdgeSourceIndex(int)
,
GraphPerspective.getEdgeTargetIndex(int)
public GraphPerspective createGraphPerspective(int[] nodeInx)
createGraphPerspective
in interface GraphPerspective
nodeInx
- DOCUMENT ME!
public void finalize()
finalize
in class Object
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |