secondTripPattern.add(secondTripTimes);
thirdTripPattern.add(thirdTripTimes);
// Vertices for legs 1, 2 and 3
TransitStop v6 = new TransitStop(graph, trainStopDepart);
TransitStopDepart v8 = new TransitStopDepart(graph, trainStopDepart, v6);
// To understand the stop indexes in the vertex constructors, look at firstStopTimes.add() etc. above
PatternDepartVertex v10 = new PatternDepartVertex(graph, firstTripPattern, 0);
PatternArriveVertex v12 = new PatternArriveVertex(graph, firstTripPattern, 1);
PatternDepartVertex v14 = new PatternDepartVertex(graph, firstTripPattern, 1);
PatternArriveVertex v16 = new PatternArriveVertex(graph, firstTripPattern, 2);
PatternDepartVertex v18 = new PatternDepartVertex(graph, secondTripPattern, 0);
PatternArriveVertex v20 = new PatternArriveVertex(graph, secondTripPattern, 1);
TransitStop v24 = new TransitStop(graph, trainStopArrive);
TransitStopArrive v22 = new TransitStopArrive(graph, trainStopArrive, v24);
// Vertices for legs 3 and 4
TransitStop v26 = new TransitStop(graph, ferryStopDepart);
TransitStopDepart v28 = new TransitStopDepart(graph, ferryStopDepart, v26);
PatternDepartVertex v30 = new PatternDepartVertex(graph, thirdTripPattern, 0);
PatternArriveVertex v32 = new PatternArriveVertex(graph, thirdTripPattern, 1);
TransitStop v36 = new TransitStop(graph, ferryStopArrive);
TransitStopArrive v34 = new TransitStopArrive(graph, ferryStopArrive, v36);