Milestones that are not a leaf or a branching point are removed: A -> B -> C becomes A -> C
Cycles contain at least 3 nodes, ie. A -> B -> A becomes A -> B -> C -> A
Loops are converted to a cycle, unless allow_self_loops = TRUE
simplify_trajectory(trajectory, allow_self_loops = FALSE)
A trajectory object
The trajectory as created by infer_trajectory()
or add_trajectory()
Whether or not to allow self loops.
The positions of the cells within the trajectory remain the same.