Skip to main content

Simulate an infection process on a graph as well as create a credible set for the patient zero given a set of infected nodes on a graph.

Project description

Infection

This package will allow you to create a credible set for the patient zero given a set of infected nodes on a graph.

Installation

Run the following to install:

pip install infect-net-inference

Usage

from infect_tools_noisy_conv import *

# Simulate an infection on graf. Outputs a list containing the infected nodes in the order they were infected 
order = simulateInfection(graf, first, n_inf, q) 

# Create a dict mapping each node index to the posterior root probability
freq = inferInfection(foo, q, **mcmc_params)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infect-net-inference-0.0.2.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

infect_net_inference-0.0.2-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page