ENH: add untested option to provide dummy nodes to the function that merges background trajectories