egttools.plotting.network_plots¶
Network visualisation utilities for EGTtools.
Provides six plot types commonly used when analysing evolutionary games on structured populations:
plot_network_state()— snapshot of the network, nodes coloured by strategyplot_strategy_evolution()— time-series of strategy frequenciesanimate_network_evolution()— GIF/MP4 animation of the evolving networkplot_edge_homophily()— homophily (fraction same-strategy edges) over timeplot_parameter_sweep()— cooperation level vs two parameters (heatmap)plot_strategy_by_degree()— dominant strategy per degree bin (scale-free nets)
Functions
Animate the evolution of a network, colouring nodes by strategy. |
|
Plot the evolution of edge homophily over time. |
|
Draw a network snapshot with nodes coloured by their current strategy. |
|
Plot a 2-D parameter sweep as a heatmap. |
|
Plot the frequency of each strategy stratified by node degree. |
|
Plot time-series of strategy frequencies. |