egttools.numerical.structure.factories.network_mc_estimator_factory

network_mc_estimator_factory(game, topology, nb_strategies, beta, mu, update_rule='PC', cache_size=100000)[source]

Create a NetworkMCEstimator for the requested update rule.

Parameters:
  • game (egttools.games.AbstractSpatialGame)

  • topology (dict[int, list[int]]) – Network adjacency dictionary (e.g. from {n: list(nbrs) for n, nbrs in G.adjacency()}).

  • nb_strategies (int)

  • beta (float) – Selection intensity. For "LP" / "LinearProportional" pass beta = max(T, 1.0) - min(S, 0.0) (payoff-normalisation constant D_>).

  • mu (float) – Mutation probability.

  • update_rule (str) – One of "PC" / "PairwiseComparison", "BD" / "BirthDeath", "DB" / "DeathBirth", "TDPC" / "TimeDependentPC", "LP" / "LinearProportional".

  • cache_size (int, optional)

Returns:

  • NetworkMCEstimatorPC | NetworkMCEstimatorBD | NetworkMCEstimatorDB |

  • NetworkMCEstimatorTDPC | NetworkMCEstimatorLP