Vertex fromVertex = new WalkToStopVertex(_context, _stop);
Vertex toVertex = new TPDepartureVertex(_context, pathState);
EdgeNarrative narrative = narrative(s0, fromVertex, toVertex);
StateEditor edit = s0.edit(this, narrative);
edit.incrementTimeInSeconds(options.minTransferTime);
double w = options.minTransferTime * options.waitAtBeginningFactor;
edit.incrementWeight(w);
State r = edit.makeState();