Event shuffling#

Instant-event shuffling#

microcanonical_reference_models.instant_event_shuffling(temporal_network, random_state)#
template<temporal_network_edge EdgeT, std::uniform_random_bit_generator Gen>
requires is_dyadic_v<EdgeT>
network<EdgeT> microcanonical_reference_models::instant_event_shuffling(const network<EdgeT> &temp, Gen &generator);#

Produces a random shuffling of the temporal network where each event is attributed to two randomly selected vertices from the original network. Equivalent to micocanonical reference model with the canonical name \(P[E]\). The set of vertices, timestamps and the number of events are conserved.