Motifs of diffusion
node_by_exposure()
produces a motif matrix of nodes' exposure to infection/adoption by time stepnode_by_exposure(diff_model)
diff_model
: A valid network diffusion model, as created by as_diffusion()
or play_diffusion()
.Other motifs: motif_brokerage
, motif_net
, motif_node