We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e6f3a commit a742afcCopy full SHA for a742afc
src/main/java/lv/id/jc/algorithm/graph/Graph.java
@@ -30,7 +30,7 @@ public Map<T, Number> edges(T id) {
30
* @return distance for the given path as double
31
* @throws NullPointerException if path is incorrect and contains more than one vertex
32
*/
33
- public double getDistance(final List<T> path) {
+ public double getDistance(List<T> path) {
34
return IntStream
35
.range(1, path.size())
36
.mapToObj(i -> edges(path.get(i - 1)).get(path.get(i)))
0 commit comments