code: public void addEdges(Collection<EdgeIteratorState> edges) {
          for (EdgeIteratorState edge : edges) {
              visitedEdges.add(edge.getEdge());
          }
      }
docs: This method adds the specified path to this weighting which should be penalized in the
  calcWeight method.