Author: mes
Date: 2011-10-12 15:41:07 -0700 (Wed, 12 Oct 2011)
New Revision: 27150

Modified:
   core3/api/trunk/model-api/src/main/java/org/cytoscape/model/CyNetwork.java
Log:
clarified getNode and getEdge javadoc

Modified: 
core3/api/trunk/model-api/src/main/java/org/cytoscape/model/CyNetwork.java
===================================================================
--- core3/api/trunk/model-api/src/main/java/org/cytoscape/model/CyNetwork.java  
2011-10-12 22:34:46 UTC (rev 27149)
+++ core3/api/trunk/model-api/src/main/java/org/cytoscape/model/CyNetwork.java  
2011-10-12 22:41:07 UTC (rev 27150)
@@ -164,7 +164,11 @@
        boolean containsEdge(CyNode from, CyNode to);
 
        /**
-        * Return the CyNode that has the index.
+        * Return the CyNode that has the index. To iterate
+        * over all nodes, iterate over getNodeList(). We make
+        * no guarantees on what represent valid values for the index.
+        * The only valid indices are those accessed from existing 
+        * nodes.
         *
         * @param index the index of the CyNode to get
         * @return the associated CyNode or null if there is no
@@ -173,7 +177,11 @@
        CyNode getNode(int index);
 
        /**
-        * Return the CyEdge that has the index.
+        * Return the CyEdge that has the index. To iterate
+        * over all edges, iterate over getEdgeList(). We make
+        * no guarantees on what represent valid values for the index.
+        * The only valid indices are those accessed from existing 
+        * edges.
         *
         * @param index the index of the CyEdge to get
         * @return the associated CyEdge or null if there is no

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to