Skip to content

Commit a742afc

Browse files
authored
Update Graph.java
1 parent 73e6f3a commit a742afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/lv/id/jc/algorithm/graph/Graph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public Map<T, Number> edges(T id) {
3030
* @return distance for the given path as double
3131
* @throws NullPointerException if path is incorrect and contains more than one vertex
3232
*/
33-
public double getDistance(final List<T> path) {
33+
public double getDistance(List<T> path) {
3434
return IntStream
3535
.range(1, path.size())
3636
.mapToObj(i -> edges(path.get(i - 1)).get(path.get(i)))

0 commit comments

Comments
 (0)