1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: compatibility fix due to use of newer libcommons-collections4-java
Author: Michael R. Crusoe <mcrusoe@msu.edu>
Forwarded: no
Last-Updated: 2015-02-22
--- a/Butterfly/src/src/edu/uci/ics/jung/algorithms/shortestpath/DijkstraDistanceWoVer.java
+++ b/Butterfly/src/src/edu/uci/ics/jung/algorithms/shortestpath/DijkstraDistanceWoVer.java
@@ -97,7 +97,7 @@
{
if (!w.equals(verToExclude) && !sd.distances.containsKey(w))
{
- double edge_weight = nev.transform(e).doubleValue();
+ double edge_weight = ((Number) nev.transform(e)).doubleValue();
if (edge_weight < 0)
throw new IllegalArgumentException("Edges weights must be non-negative");
double new_dist = v_dist + edge_weight;
|