Skip to content

Commit

Permalink
fixed deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasa committed Feb 14, 2021
1 parent 0da8987 commit 712fc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/pgrserver/graph/MainGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public List<List<Integer>> tsp(List<List<Double>> inPoints) {
*/
NearestNeighborHeuristicTSP<Integer, LabeledWeightedEdge> nnhTsp =
new NearestNeighborHeuristicTSP<Integer, LabeledWeightedEdge>(
new Integer(0));
Integer.valueOf(0));

GraphPath<Integer,LabeledWeightedEdge> path = nnhTsp.getTour(tspGraph);
List<Integer> vertexList = path.getVertexList();
Expand Down

0 comments on commit 712fc01

Please sign in to comment.