Skip to content

implement graph.reset() #23

@akelleh

Description

@akelleh

We should be able to run several cascades on a single graph, so we want to be able to reset the graph to the state where all nodes are susceptible. i.e. remove all nodes from the infected and recovered lists, and add them all to the susceptible list. this method should do that.

(As a separate issue, there is no method to remove nodes from the recovered list, so I can't even write my own version of graph.reset() )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions