All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Attributes | List of all members
NetworKit::EpidemicSimulationSEIR Class Reference

Node centrality index which ranks nodes by their degree. More...

#include <EpidemicSimulationSEIR.h>

Public Member Functions

 EpidemicSimulationSEIR (const Graph &G, count tMax, double transP, count eTime, count iTime, node zero)
 
void run () override
 The generic run method which calls runImpl() and takes care of setting to the appropriate value. More...
 
std::vector< std::vector< count > > getData ()
 
- Public Member Functions inherited from NetworKit::Algorithm
 Algorithm ()
 Constructor to the algorithm base class. More...
 
virtual ~Algorithm ()=default
 Virtual default destructor. More...
 
bool hasFinished () const
 Indicates whether an algorithm has completed computation or not. More...
 
void assureFinished () const
 Assure that the algorithm has been run, throws a std::runtime_error otherwise. More...
 
virtual std::string toString () const
 Returns a string with the algorithm's name and its parameters, if there are any. More...
 
virtual bool isParallel () const
 

Protected Types

enum  State {
  State::S, State::E, State::I, State::R,
  State::U
}
 

Protected Attributes

const GraphG
 
count tMax
 
double transP
 
count eTime
 
count iTime
 
node zero
 
std::vector< Statestate
 
std::vector< indextimestamp
 
std::vector< std::vector< count > > stats
 
bool randStartNode
 
- Protected Attributes inherited from NetworKit::Algorithm
bool hasRun
 A boolean variable indicating whether an algorithm has finished its computation or not. More...
 

Detailed Description

Node centrality index which ranks nodes by their degree.

Optional normalization by maximum degree.

Member Enumeration Documentation

Enumerator
S 
E 
I 
R 
U 

Constructor & Destructor Documentation

NetworKit::EpidemicSimulationSEIR::EpidemicSimulationSEIR ( const Graph G,
count  tMax,
double  transP,
count  eTime,
count  iTime,
node  zero 
)
Parameters
GThe network.

Member Function Documentation

std::vector< std::vector< count > > NetworKit::EpidemicSimulationSEIR::getData ( )
void NetworKit::EpidemicSimulationSEIR::run ( )
overridevirtual

The generic run method which calls runImpl() and takes care of setting to the appropriate value.

Implements NetworKit::Algorithm.

Member Data Documentation

count NetworKit::EpidemicSimulationSEIR::eTime
protected
const Graph& NetworKit::EpidemicSimulationSEIR::G
protected
count NetworKit::EpidemicSimulationSEIR::iTime
protected
bool NetworKit::EpidemicSimulationSEIR::randStartNode
protected
std::vector<State> NetworKit::EpidemicSimulationSEIR::state
protected
std::vector<std::vector<count> > NetworKit::EpidemicSimulationSEIR::stats
protected
std::vector<index> NetworKit::EpidemicSimulationSEIR::timestamp
protected
count NetworKit::EpidemicSimulationSEIR::tMax
protected
double NetworKit::EpidemicSimulationSEIR::transP
protected
node NetworKit::EpidemicSimulationSEIR::zero
protected

The documentation for this class was generated from the following files: