}
void MTPTracker::write_trajectories(ostream *os) {
+ (*os) << nb_trajectories() << endl;
for(int t = 0; t < nb_trajectories(); t++) {
(*os) << t
<< " " << trajectory_entrance_time(t)
}
int MTPTracker::early_pair_node(int t, int l) {
- return 1 + (2 * (t + 0) + 0) * _nb_locations + l;
+ return 1 + (2 * t + 0) * _nb_locations + l;
}
int MTPTracker::late_pair_node(int t, int l) {
- return 1 + (2 * (t + 0) + 1) * _nb_locations + l;
+ return 1 + (2 * t + 1) * _nb_locations + l;
}
void MTPTracker::build_graph() {