EoN.Simulation_Investigation.transmission_tree

Simulation_Investigation.transmission_tree()[source]

Produces a MultiDigraph whose edges correspond to transmission events. If SIR, then this is a tree (or a forest).

Returns:
T a directed Multi graph
T has all the information in transmissions. An edge from u to v with time t means u transmitted to v at time t.
Warning:

Although we refer to this as a “tree”, if the disease is SIS, there are likely to be cycles and/or repeated edges. If the disease is SIR but there are multiple initial infections, then this will be a “forest”.

If it’s an SIR, then this is a tree (or forest).

The graph contains only those nodes that are infected at some point.