How mesa/mesa-examples works
This repository packages Mesa user examples rather than one application. Its GIS examples let a user configure and run spatial simulations, then inspect map and metric visualizations; its reinforcement-learning examples demonstrate policy-driven agent simulations. The graph preserves the distinct GIS model families and the RL examples visible in the tree. Source sampling is limited to selected app and server files, so uncertain internal model-to-space and training wiring is omitted.
Main entry points: server.py Civil violence server · geo_schelling/app.py GeoSchelling app · geo_schelling_points/app.py Points app · geo_sir/app.py GeoSIR app
Components 32
Vector GIS
- Polygon Schelling
gis/geo_schelling/model.py - Points Schelling
gis/geo_schelling_points/geo_schelling_points/model.py - People and regions
gis/geo_schelling_points/geo_schelling_points/agents.py - GeoSIR simulation
gis/geo_sir/geo_sir/model.py - SIR agents
gis/geo_sir/geo_sir/agents.py - Agents and networks
gis/agents_and_networks/src/model/model.py - Commuter agents
gis/agents_and_networks/src/agent/commuter.py - Campus space
gis/agents_and_networks/src/space/campus.py - Road network
gis/agents_and_networks/src/space/road_network.py - Population simulation
gis/population/population/model.py
Raster GIS
- Rainfall simulation
gis/rainfall/rainfall/model.py - Lake cells
gis/rainfall/rainfall/space.py - Urban growth simulation
gis/urban_growth/urban_growth/model.py - Urban cells
gis/urban_growth/urban_growth/space.py
RL Examples
- Boltzmann model
rl/boltzmann_money/model.py - Civil violence model
rl/epstein_civil_violence/model.py - Citizen and cop agents
rl/epstein_civil_violence/agent.py - Observation utilities
rl/epstein_civil_violence/utility.py - Wolf-sheep RL model
rl/wolf_sheep/model.py - Wolf-sheep agents
rl/wolf_sheep/agents.py
Run Interfaces
- GeoSchelling app
gis/geo_schelling/app.py - Points app
gis/geo_schelling_points/app.py - GeoSIR app
gis/geo_sir/app.py - Campus app
gis/agents_and_networks/app.py - Population app
gis/population/app.py - Rainfall app
gis/rainfall/app.py - Urban growth app
gis/urban_growth/app.py - Wealth interface
rl/boltzmann_money/server.py - Civil violence server
rl/epstein_civil_violence/server.py - Wolf-sheep app
rl/wolf_sheep/app.py
Other components
- Example user
- RL example user
Connections 21
- Example user → GeoSchelling app: runs
- GeoSchelling app → Polygon Schelling: creates
- Example user → Points app: runs
- Points app → Points Schelling: creates
- Example user → GeoSIR app: runs
- GeoSIR app → GeoSIR simulation: creates
- Example user → Campus app: runs
- Campus app → Agents and networks: creates
- Example user → Population app: runs
- Population app → Population simulation: creates
- Example user → Rainfall app: runs
- Rainfall app → Rainfall simulation: creates
- Example user → Urban growth app: runs
- Urban growth app → Urban growth simulation: creates
- RL example user → Wealth interface: runs
- Wealth interface → Boltzmann model: extends
- RL example user → Civil violence server: runs
- Civil violence server → Civil violence model: extends
- Civil violence server → Observation utilities: builds observations
- RL example user → Wolf-sheep app: runs
- Wolf-sheep app → Wolf-sheep RL model: imports