pub fn expected_spread(
adjacency: &AdjList,
seeds: &[usize],
num_simulations: usize,
) -> Result<f64>Expand description
Estimate the expected spread of a seed set under the IC model using
Monte-Carlo averaging over num_simulations independent runs.
ยงArguments
adjacencyโ directed adjacency list with propagation probabilities.seedsโ initial seed set.num_simulationsโ number of Monte-Carlo trials.