Author: abeld
Date: 2009-07-09 10:21:53 -0700 (Thu, 09 Jul 2009)
New Revision: 17286
Modified:
coreplugins/trunk/AutomaticLayout/src/csplugins/layout/algorithms/hierarchicalLayout/Graph.java
Log:
small and obvious bugfix to check both edge end indices for correctness
Modified:
coreplugins/trunk/AutomaticLayout/src/csplugins/layout/algorithms/hierarchicalLayout/Graph.java
===================================================================
---
coreplugins/trunk/AutomaticLayout/src/csplugins/layout/algorithms/hierarchicalLayout/Graph.java
2009-07-09 16:24:00 UTC (rev 17285)
+++
coreplugins/trunk/AutomaticLayout/src/csplugins/layout/algorithms/hierarchicalLayout/Graph.java
2009-07-09 17:21:53 UTC (rev 17286)
@@ -253,7 +253,7 @@
int edgeFrom = a_edge[x].getFrom();
int edgeTo = a_edge[x].getTo();
- if ((edgeFrom < 0) || (edgeTo >= nodecount) || (edgeTo
< 0) || (edgeTo >= nodecount)) {
+ if ((edgeFrom < 0) || (edgeFrom >= nodecount) ||
(edgeTo < 0) || (edgeTo >= nodecount)) {
throw new IllegalArgumentException("Edge
refered to node outside of valid range: "
+ "From=" +
edgeFrom + " To=" + edgeTo
+ " with
nodecount=" + nodecount + "\n");
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---