egttools.plotting.network_plots

Network visualisation utilities for EGTtools.

Provides six plot types commonly used when analysing evolutionary games on structured populations:

  1. plot_network_state() — snapshot of the network, nodes coloured by strategy

  2. plot_strategy_evolution() — time-series of strategy frequencies

  3. animate_network_evolution() — GIF/MP4 animation of the evolving network

  4. plot_edge_homophily() — homophily (fraction same-strategy edges) over time

  5. plot_parameter_sweep() — cooperation level vs two parameters (heatmap)

  6. plot_strategy_by_degree() — dominant strategy per degree bin (scale-free nets)

Functions

animate_network_evolution

Animate the evolution of a network, colouring nodes by strategy.

plot_edge_homophily

Plot the evolution of edge homophily over time.

plot_network_state

Draw a network snapshot with nodes coloured by their current strategy.

plot_parameter_sweep

Plot a 2-D parameter sweep as a heatmap.

plot_strategy_by_degree

Plot the frequency of each strategy stratified by node degree.

plot_strategy_evolution

Plot time-series of strategy frequencies.