Is there a way to create a single edge on a graph that connects 3 or more nodes? For example, let's say that the probability of Y occurring after X is 0.1, and the probability of Z occurring after Y is 0.001, but the probability of Z occurring after both X and Y occur is 0.95. If the probabilities are assigned to each edge as weights, how can I make this happen?
$$X _\overrightarrow{0.1} Y$$
$$Y _\overrightarrow{0.001} Z$$
$$\overrightarrow{X \underrightarrow{} Y \underrightarrow{0.95}} Z$$