ndlib icon indicating copy to clipboard operation
ndlib copied to clipboard

attribute a newly infected node to the source node

Open yunshiuan opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. I wonder if there's a way to attribute a newly infected node to the source node. That is, if a node gets infected, can I know which node infects it? This is very important when doing influence maximization or outbreak control on a cascading model.

Describe the solution you'd like The model.iteration() function should return the source of each newly affected node. I believe this information should have been computed within the function scope, but isn't returned by the function.

Thank you!

yunshiuan avatar Jul 16 '21 03:07 yunshiuan