egttools.plotting.plot_strategy_by_degree

plot_strategy_by_degree(degrees, population, nb_strategies, strategy_names=None, strategy_colors=None, ax=None, bins='auto', xlabel='Node degree', ylabel='Strategy frequency', title='Strategy distribution by degree')[source]

Plot the frequency of each strategy stratified by node degree.

Useful for heterogeneous networks (e.g. Barabási–Albert scale-free graphs) to reveal whether hub nodes and peripheral nodes adopt different strategies.

Parameters:
Return type:

Axes