- // The edges from the source to the first time frame
-
- for(int l = 0; l < nb_locations; l++) {
- node_from[e] = source;
- node_to[e] = 1 + l + 0 * nb_locations;
- _edge_lengths[e] = 0.0;
- e++;
- }
-
- // The edges from the last frame to the sink
-
- for(int l = 0; l < nb_locations; l++) {
- node_from[e] = late_pair_node(nb_time_steps - 1, l);
- node_to[e] = sink;
- _edge_lengths[e] = 0.0;
- e++;
- }
-