process
Base classes for simulation of dynamical processes
BaseProcess
¶
Abstract base class for all implementations of discrete-time dynamical processes.
Source code in src/pathpyG/processes/process.py
__init__
¶
init
abstractmethod
¶
node_state
abstractmethod
¶
random_seed
abstractmethod
¶
run_experiment
¶
Perform one or more simulation runs of the process with a given number of steps.
Source code in src/pathpyG/processes/process.py
simulation_run
¶
Abstract generator method that initializes the process, runs a number of steps and yields a tuple consisting of the current time and the set of nodes whose state has changed in each step.
Source code in src/pathpyG/processes/process.py
state_to_color
abstractmethod
¶
step
abstractmethod
¶
Abstract method to simulate a single step of the process. Returns an iterable of node uids whose state has been changed in this step.