egttools.plotting.plot_edge_homophily

plot_edge_homophily(homophily, ax=None, color='#4C72B0', label='Edge homophily', xlabel='Generation', ylabel='Fraction same-strategy edges', title='')[source]

Plot the evolution of edge homophily over time.

Useful for co-evolutionary networks where the topology adapts alongside strategy dynamics.

Parameters:
  • homophily (sequence of float) – Per-generation fraction of edges connecting same-strategy nodes. Typically computed from the topology callback of NetworkCoEvolutionary.run_snapshots().

  • ax (matplotlib.axes.Axes, optional)

  • color (str)

  • label (str)

  • xlabel (str)

  • ylabel (str)

  • title (str)

Return type:

matplotlib.axes.Axes