Differences between revisions 1 and 2
Revision 1 as of 2008-05-01 18:17:37
Size: 6481
Editor: nebbiolo
Comment:
Revision 2 as of 2008-05-01 18:27:36
Size: 7085
Editor: nebbiolo
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This page lists all of the methods currently contained in the GraphPerspective class that will need to be replaced or whose functionality must be otherwise supported in 3.0. The methods are grouped according to how they are supported by the current proposed API: [http://chianti.ucsd.edu/svn/csplugins/trunk/ucsd/mes/api/]
Line 2: Line 3:
    // getNodeCount, getEdgeCount
    public int getNodeCount();
    public int getEdgeCount();
 
* Found in getNodeCount, getEdgeCount
    * public int getNodeCount();
    * public int getEdgeCount();
Line 6: Line 8:
    // getNodeList, getEdgeList
    public Iterator<Node> nodesIterator();
    public List<Node> nodesList();
    public int[] getNodeIndicesArray();
    public Iterator<Edge> edgesIterator();
    public List<Edge> edgesList();
    public int[] getEdgeIndicesArray();
    public int[] getEdgeIndicesArray(
 * Found in getNodeList, getEdgeList
    * public Iterator<Node> nodesIterator();
    * public List<Node> nodesList();
    * public int[] getNodeIndicesArray();
    * public Iterator<Edge> edgesIterator();
    * public List<Edge> edgesList();
    * public int[] getEdgeIndicesArray();
    * public int[] getEdgeIndicesArray(
Line 15: Line 17:
    // contains
    public boolean containsNode( Node node );
    public boolean containsNode( Node node, boolean recurse );
    public boolean containsEdge( Edge edge );
    public boolean containsEdge( Edge edge, boolean recurse );
    public boolean edgeExists( Node from, Node to );
    public boolean edgeExists( int from_node_index, int to_node_index );
 * Found in contains
    * public boolean containsNode( Node node );
    * public boolean containsNode( Node node, boolean recurse );
    * public boolean containsEdge( Edge edge );
    * public boolean containsEdge( Edge edge, boolean recurse );
    * public boolean edgeExists( Node from, Node to );
    * public boolean edgeExists( int from_node_index, int to_node_index );
 
 * Found in getNeighborList, getAdjacentEdgeList, getConnectingEdgeList
    * public List<Node> neighborsList( Node node );
    * public int[] neighborsArray( int node_index );
    * public List<Edge> edgesList( Node from, Node to );
    * public List<Edge> edgesList(int from_node_index,
    * public int[] getEdgeIndicesArray(int from_node_index,
    * public List<Edge> getAdjacentEdgesList( Node node, boolean include_undirected_edges, boolean incoming_edges, boolean outgoing_edges );
    * public int[] getAdjacentEdgeIndicesArray( int node_index,
    * public List<Edge> getConnectingEdges( List<Node> nodes );
    * public int[] getConnectingEdgeIndicesArray( int[] node_indices );
 * Found in getIndex, getNode, getEdge
    * public int getIndex( Node node );
    * public int getRootGraphNodeIndex( int root_graph_node_index );
    * public Node getNode( int index );
    * public int getIndex( Edge edge );
    * public int getRootGraphEdgeIndex( int root_graph_edge_index );
    * public Edge getEdge( int index );
Line 23: Line 43:
    // getNeighborList, getAdjacentEdgeList, getConnectingEdgeList
    public List<Node> neighborsList( Node node );
    public int[] neighborsArray( int node_index );
    public List<Edge> edgesList( Node from, Node to );
    public List<Edge> edgesList(int from_node_index,
    public int[] getEdgeIndicesArray(int from_node_index,
    public List<Edge> getAdjacentEdgesList( Node node, boolean include_undirected_edges, boolean incoming_edges, boolean outgoing_edges );
    public int[] getAdjacentEdgeIndicesArray( int node_index,
    public List<Edge> getConnectingEdges( List<Node> nodes );
    public int[] getConnectingEdgeIndicesArray( int[] node_indices );
    // getIndex, getNode, getEdge
    public int getIndex( Node node );
    public int getRootGraphNodeIndex( int root_graph_node_index );
    public Node getNode( int index );
    public int getIndex( Edge edge );
    public int getRootGraphEdgeIndex( int root_graph_edge_index );
    public Edge getEdge( int index );
 * Found in part of CyEdge
    * public boolean isEdgeDirected( int edge_index );
Line 41: Line 46:
    // part of CyEdge
    public boolean isEdgeDirected( int edge_index );
 * Supported in CyNetwork, but we're talking about a slightly different model. This is a result of root graph thinking. The Node is first created in the root graph, then it's added to a perspective
    * public int addNode(int cytoscape_node);
    * public Node addNode(Node cytoscape_node);
    * public int addEdge(int cytoscape_edge);
    * public Edge addEdge(Edge cytoscape_edge);
Line 44: Line 52:
    // ?? we're talking about a slightly different model.
    // This is a result of root graph thinking. The Node is first created in the
    // root graph, then it's added to a perspective
    public int addNode(int cytoscape_node);
    public Node addNode(Node cytoscape_node);
    public int addEdge(int cytoscape_edge);
    public Edge addEdge(Edge cytoscape_edge);
 * Found in remove*
    * public boolean removeEdge(int edge_index, boolean set_remove);
    * public boolean removeNode(int node_index, boolean set_remove);
Line 52: Line 56:
    // remove*
    public boolean removeEdge(int edge_index, boolean set_remove);
    public boolean removeNode(int node_index, boolean set_remove);
    // subsumed by getNeighborList - possibly put in a util class
    public boolean isNeighbor( Node a_node, Node another_node );
    public boolean isNeighbor( int a_node_index, int another_node_index );
 * Found in getIdentifier()
    * public String getIdentifier();
Line 59: Line 59:
    // get/set id
    public String getIdentifier();
Line 62: Line 60:
    // should go away - identifier should not be mutable
    public String setIdentifier(String new_id);
 * should go away - identifier should not be mutable
    * public String setIdentifier(String new_id);
Line 65: Line 63:
    // subsumed by getAdjacentEdgeList - possibly put in a util class
    public int getEdgeCount(Node from,
    public int getEdgeCount( int from_node_index,
 * subsumed by getNeighborList - possibly put in a util class
    * public boolean isNeighbor( Node a_node, Node another_node );
    * public boolean isNeighbor( int a_node_index, int another_node_index );
Line 69: Line 67:
    // subsumed by getAdjacentEdgeList - possibly put in a util class
    public int getInDegree( Node node );
    public int getInDegree( int node_index );
    public int getInDegree( Node node, boolean count_undirected_edges );
    public int getInDegree( int node_index, boolean count_undirected_edges );
    public int getOutDegree( Node node );
    public int getOutDegree( int node_index );
    public int getOutDegree( Node node, boolean count_undirected_edges );
    public int getOutDegree( int node_index, boolean count_undirected_edges );
    public int getDegree( Node node );
    public int getDegree( int node_index );
 * subsumed by getAdjacentEdgeList - possibly put in a util class
    * public int getEdgeCount(Node from,
    * public int getEdgeCount( int from_node_index,
Line 81: Line 71:
    // subsumed by getEdge().getSourceNode().getIndex()
    public int getEdgeSourceIndex( int edge_index );
    public int getEdgeTargetIndex( int edge_index );
 * subsumed by getAdjacentEdgeList - possibly put in a util class
    * public int getInDegree( Node node );
    * public int getInDegree( int node_index );
    * public int getInDegree( Node node, boolean count_undirected_edges );
    * public int getInDegree( int node_index, boolean count_undirected_edges );
    * public int getOutDegree( Node node );
    * public int getOutDegree( int node_index );
    * public int getOutDegree( Node node, boolean count_undirected_edges );
    * public int getOutDegree( int node_index, boolean count_undirected_edges );
    * public int getDegree( Node node );
    * public int getDegree( int node_index );
Line 85: Line 83:
    // should be in a factory
    public GraphPerspective createGraphPerspective( Node[] nodes, Edge[] edges);
    public GraphPerspective createGraphPerspective( Collection<Node> nodes, Collection<Edge> edges);
    public GraphPerspective createGraphPerspective(int[] node_indices,
    public GraphPerspective createGraphPerspective( int[] node_indices );
 * subsumed by getEdge().getSourceNode().getIndex()
    * public int getEdgeSourceIndex( int edge_index );
    * public int getEdgeTargetIndex( int edge_index );
Line 91: Line 87:
    // I think title should be an attribute
    public String getTitle();
    public void setTitle(String new_id);
    // ??? selection support
    public void selectAllNodes();
    public void selectAllEdges();
    public void unselectAllNodes();
    public void unselectAllEdges();
    public void setSelectedNodeState(Collection<Node> nodes, boolean selected_state);
    public void setSelectedNodeState(Node node, boolean selected_state);
    public void setSelectedEdgeState(Collection<Edge> edges, boolean selected_state);
    public void setSelectedEdgeState(Edge edge, boolean selected_state);
    public boolean isSelected(Node node);
    public boolean isSelected(Edge edge);
    public Set<Node> getSelectedNodes();
    public Set<Edge> getSelectedEdges();
    public void addSelectEventListener(SelectEventListener listener);
    public void removeSelectEventListener(SelectEventListener listener);
    public SelectFilter getSelectFilter();
 * should be in a factory
    * public GraphPerspective createGraphPerspective( Node[] nodes, Edge[] edges);
    * public GraphPerspective createGraphPerspective( Collection<Node> nodes, Collection<Edge> edges);
    * public GraphPerspective createGraphPerspective(int[] node_indices,
    * public GraphPerspective createGraphPerspective( int[] node_indices );
Line 111: Line 93:
    // ???
    public Node hideNode( Node node );
    public int hideNode( int node_index );
    public List<Node> hideNodes( List<Node> nodes );
    public int[] hideNodes( int[] node_indices );
    public Node restoreNode( Node node );
    public int restoreNode( int node_index );
    public List<Node> restoreNodes( List<Node> nodes );
    public List<Node> restoreNodes(List<Node> nodes, boolean restore_incident_edges);
    public int [] restoreNodes(int [] node_indices, boolean restore_incident_edges);
    public int[] restoreNodes( int[] node_indices );
    public Edge hideEdge( Edge edge );
    public int hideEdge( int edge_index );
    public List<Edge> hideEdges( List<Edge> edges );
    public int[] hideEdges( int[] edge_indices );
    public Edge restoreEdge( Edge edge );
    public int restoreEdge( int edge_index );
    public List<Edge> restoreEdges( List<Edge> edges );
    public int[] restoreEdges( int[] edge_indices );
    // ???
    public void addGraphPerspectiveChangeListener( GraphPerspectiveChangeListener listener );
    public void removeGraphPerspectiveChangeListener( GraphPerspectiveChangeListener listener );
 * I think title should be an attribute
    * public String getTitle();
    * public void setTitle(String new_id);
Line 134: Line 97:
    // ???
    public Object clone();
    public RootGraph getRootGraph();
 * ??? Write a separate support class
    * public void selectAllNodes();
    * public void selectAllEdges();
    * public void unselectAllNodes();
    * public void unselectAllEdges();
    * public void setSelectedNodeState(Collection<Node> nodes, boolean selected_state);
    * public void setSelectedNodeState(Node node, boolean selected_state);
    * public void setSelectedEdgeState(Collection<Edge> edges, boolean selected_state);
    * public void setSelectedEdgeState(Edge edge, boolean selected_state);
    * public boolean isSelected(Node node);
    * public boolean isSelected(Edge edge);
    * public Set<Node> getSelectedNodes();
    * public Set<Edge> getSelectedEdges();
    * public void addSelectEventListener(SelectEventListener listener);
    * public void removeSelectEventListener(SelectEventListener listener);
    * public SelectFilter getSelectFilter();
Line 138: Line 114:
    // ???
    public GraphPerspective join( GraphPerspective peer );
    public void appendNetwork(GraphPerspective network);
 * ??? Write a separate support class
    * public Node hideNode( Node node );
    * public int hideNode( int node_index );
    * public List<Node> hideNodes( List<Node> nodes );
    * public int[] hideNodes( int[] node_indices );
    * public Node restoreNode( Node node );
    * public int restoreNode( int node_index );
    * public List<Node> restoreNodes( List<Node> nodes );
    * public List<Node> restoreNodes(List<Node> nodes, boolean restore_incident_edges);
    * public int [] restoreNodes(int [] node_indices, boolean restore_incident_edges);
    * public int[] restoreNodes( int[] node_indices );
    * public Edge hideEdge( Edge edge );
    * public int hideEdge( int edge_index );
    * public List<Edge> hideEdges( List<Edge> edges );
    * public int[] hideEdges( int[] edge_indices );
    * public Edge restoreEdge( Edge edge );
    * public int restoreEdge( int edge_index );
    * public List<Edge> restoreEdges( List<Edge> edges );
    * public int[] restoreEdges( int[] edge_indices );
 * ???
    * public void addGraphPerspectiveChangeListener( GraphPerspectiveChangeListener listener );
    * public void removeGraphPerspectiveChangeListener( GraphPerspectiveChangeListener listener );

 * ???
    * public Object clone();
    * public RootGraph getRootGraph();

 * ???
    * public GraphPerspective join( GraphPerspective peer );
    * public void appendNetwork(GraphPerspective network);

This page lists all of the methods currently contained in the GraphPerspective class that will need to be replaced or whose functionality must be otherwise supported in 3.0. The methods are grouped according to how they are supported by the current proposed API: [http://chianti.ucsd.edu/svn/csplugins/trunk/ucsd/mes/api/]

  • Found in getNodeCount, getEdgeCount
    • public int getNodeCount();
    • public int getEdgeCount();
  • Found in getNodeList, getEdgeList
    • public Iterator<Node> nodesIterator();

    • public List<Node> nodesList();

    • public int[] getNodeIndicesArray();
    • public Iterator<Edge> edgesIterator();

    • public List<Edge> edgesList();

    • public int[] getEdgeIndicesArray();
    • public int[] getEdgeIndicesArray(
  • Found in contains
    • public boolean containsNode( Node node );
    • public boolean containsNode( Node node, boolean recurse );
    • public boolean containsEdge( Edge edge );
    • public boolean containsEdge( Edge edge, boolean recurse );
    • public boolean edgeExists( Node from, Node to );
    • public boolean edgeExists( int from_node_index, int to_node_index );
  • Found in getNeighborList, getAdjacentEdgeList, getConnectingEdgeList
    • public List<Node> neighborsList( Node node );

    • public int[] neighborsArray( int node_index );
    • public List<Edge> edgesList( Node from, Node to );

    • public List<Edge> edgesList(int from_node_index,

    • public int[] getEdgeIndicesArray(int from_node_index,
    • public List<Edge> getAdjacentEdgesList( Node node, boolean include_undirected_edges, boolean incoming_edges, boolean outgoing_edges );

    • public int[] getAdjacentEdgeIndicesArray( int node_index,
    • public List<Edge> getConnectingEdges( List<Node> nodes );

    • public int[] getConnectingEdgeIndicesArray( int[] node_indices );
  • Found in getIndex, getNode, getEdge
    • public int getIndex( Node node );
    • public int getRootGraphNodeIndex( int root_graph_node_index );
    • public Node getNode( int index );
    • public int getIndex( Edge edge );
    • public int getRootGraphEdgeIndex( int root_graph_edge_index );
    • public Edge getEdge( int index );
  • Found in part of CyEdge

    • public boolean isEdgeDirected( int edge_index );
  • Supported in CyNetwork, but we're talking about a slightly different model. This is a result of root graph thinking. The Node is first created in the root graph, then it's added to a perspective

    • public int addNode(int cytoscape_node);
    • public Node addNode(Node cytoscape_node);
    • public int addEdge(int cytoscape_edge);
    • public Edge addEdge(Edge cytoscape_edge);
  • Found in remove*
    • public boolean removeEdge(int edge_index, boolean set_remove);
    • public boolean removeNode(int node_index, boolean set_remove);
  • Found in getIdentifier()
    • public String getIdentifier();
  • should go away - identifier should not be mutable
    • public String setIdentifier(String new_id);
  • subsumed by getNeighborList - possibly put in a util class
    • public boolean isNeighbor( Node a_node, Node another_node );
    • public boolean isNeighbor( int a_node_index, int another_node_index );
  • subsumed by getAdjacentEdgeList - possibly put in a util class
    • public int getEdgeCount(Node from,
    • public int getEdgeCount( int from_node_index,
  • subsumed by getAdjacentEdgeList - possibly put in a util class
    • public int getInDegree( Node node );
    • public int getInDegree( int node_index );
    • public int getInDegree( Node node, boolean count_undirected_edges );
    • public int getInDegree( int node_index, boolean count_undirected_edges );
    • public int getOutDegree( Node node );
    • public int getOutDegree( int node_index );
    • public int getOutDegree( Node node, boolean count_undirected_edges );
    • public int getOutDegree( int node_index, boolean count_undirected_edges );
    • public int getDegree( Node node );
    • public int getDegree( int node_index );
  • subsumed by getEdge().getSourceNode().getIndex()
    • public int getEdgeSourceIndex( int edge_index );
    • public int getEdgeTargetIndex( int edge_index );
  • should be in a factory
  • I think title should be an attribute
    • public String getTitle();
    • public void setTitle(String new_id);
  • ??? Write a separate support class
    • public void selectAllNodes();
    • public void selectAllEdges();
    • public void unselectAllNodes();
    • public void unselectAllEdges();
    • public void setSelectedNodeState(Collection<Node> nodes, boolean selected_state);

    • public void setSelectedNodeState(Node node, boolean selected_state);
    • public void setSelectedEdgeState(Collection<Edge> edges, boolean selected_state);

    • public void setSelectedEdgeState(Edge edge, boolean selected_state);
    • public boolean isSelected(Node node);
    • public boolean isSelected(Edge edge);
    • public Set<Node> getSelectedNodes();

    • public Set<Edge> getSelectedEdges();

    • public void addSelectEventListener(SelectEventListener listener);

    • public void removeSelectEventListener(SelectEventListener listener);

    • public SelectFilter getSelectFilter();

  • ??? Write a separate support class
    • public Node hideNode( Node node );
    • public int hideNode( int node_index );
    • public List<Node> hideNodes( List<Node> nodes );

    • public int[] hideNodes( int[] node_indices );
    • public Node restoreNode( Node node );
    • public int restoreNode( int node_index );
    • public List<Node> restoreNodes( List<Node> nodes );

    • public List<Node> restoreNodes(List<Node> nodes, boolean restore_incident_edges);

    • public int [] restoreNodes(int [] node_indices, boolean restore_incident_edges);
    • public int[] restoreNodes( int[] node_indices );
    • public Edge hideEdge( Edge edge );
    • public int hideEdge( int edge_index );
    • public List<Edge> hideEdges( List<Edge> edges );

    • public int[] hideEdges( int[] edge_indices );
    • public Edge restoreEdge( Edge edge );
    • public int restoreEdge( int edge_index );
    • public List<Edge> restoreEdges( List<Edge> edges );

    • public int[] restoreEdges( int[] edge_indices );
  • ???
  • ???
    • public Object clone();
    • public RootGraph getRootGraph();

  • ???

GraphPerspectiveToCyNetwork (last edited 2009-02-12 01:04:14 by localhost)

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux