Simulate branching trajectories on a continuous time Bayesian network (CTBN) using Rao-Teh sampling.