Documentation Index
Fetch the complete documentation index at: https://docs.emergent.community/llms.txt
Use this file to discover all available pages before exploring further.
Overview
In Emergent, agents live on the nodes of a graph. Edges define which agents can interact. The topology you choose has a major impact on how information, behavior, or state propagates through your simulation. Emergent ships with three built-in topologies and supports any custom NetworkX graph.Built-in topologies
Setgraph_type in your parameters before calling initialize_graph().
Complete graph
Cycle graph
Wheel graph
Custom graphs
For real-world or research-grade topologies, provide your own NetworkX graph:nx.Graph (undirected) is accepted. Common choices for ABM research:
| Graph type | NetworkX constructor | Use case |
|---|---|---|
| Barabási–Albert | nx.barabasi_albert_graph(n, m) | Scale-free / social networks |
| Erdős–Rényi | nx.erdos_renyi_graph(n, p) | Random networks |
| Watts–Strogatz | nx.watts_strogatz_graph(n, k, p) | Small-world networks |
| Grid | nx.grid_2d_graph(m, n) | Spatial / lattice models |
| Karate club | nx.karate_club_graph() | Classic social network dataset |
Accessing graph data
After initialization, retrieve the graph and inspect or manipulate node data directly:Emergent does not copy the graph when you call
get_graph(). Mutations you make to the returned graph object are reflected in the model’s internal state immediately.