private double computeWeight(State state, Vertex target, Vertex v) {
if (v instanceof HasPathStateVertex) {
HasPathStateVertex tpV = (HasPathStateVertex) v;
TPState pathState = tpV.getPathState();
TransferNode node = pathState.getNode();
boolean isFromSourceStop = tpV.isDeparture() ^ pathState.isReverse();
CoordinatePoint dest = new CoordinatePoint(target.getY(), target.getX());
Set<TransferNode> visitedNodes = new HashSet<TransferNode>();
return getWeightForTransferNode(null, node, isFromSourceStop, dest,
visitedNodes);