File: collections15-to-4

package info (click to toggle)
trinityrnaseq 2.11.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 417,528 kB
  • sloc: perl: 48,420; cpp: 17,749; java: 12,695; python: 3,124; sh: 1,030; ansic: 983; makefile: 688; xml: 62
file content (16 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (3)
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;