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:
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.