Collection of utility functions for network analysis, performance calculations, and general ANNEM operations. Evolve Network Connections

Update network topology based on agent decision similarity and performance.

evolve_network(
  network,
  agent_decisions,
  similarity_threshold = 0.8,
  evolution_rate = 0.01
)

Arguments

network

igraph network object

agent_decisions

Numeric vector of agent decisions

similarity_threshold

Threshold for connecting agents (default: 0.8)

evolution_rate

Rate of network evolution (default: 0.01)

Value

Updated igraph network object

Examples

if (FALSE) { # \dontrun{
library(igraph)
net <- sample_smallworld(1, 100, 4, 0.1)
decisions <- rnorm(100)
new_net <- evolve_network(net, decisions)
} # }