Pop2net

Pop2net is a Python package that combines many steps related to network generation and management for agent-based modeling using a bipartite approach: In Pop2net, relations are represented as a graph of actors and locations. While actors are the active entities within an agent-based model, locations act as a contact layer, representing specific contexts through which actors connect. This makes it easy to generate and manage custom network structures in an agent-based model.

Pop2net thumbnail

Agent-based modeling (ABM) is a scientific method used in fields such as social science, biology, and ecology to simulate interactions of autonomous agents and study the resulting emergent phenomena. The relationships between agents, which structure the simulated interactions, are often represented by network graphs. Since empirical data on networks is rare, most agent-based models rely on artificially generated networks. Consequently, generating a valid network structure at the beginning of a simulation is critical. Addtionally, accessing and modifying the network during the simulation are steps that must be managed in almost any agent-based model.

Pop2net is a Python package that combines many steps related to network generation and management for ABM using a bipartite approach. Bipartite networks consist of two distinct types of entities where edges are only formed between entities of different types. In Pop2net, relationships are represented as bipartite networks connecting actors and locations. When two actors are linked to the same location, they are considered connected through that shared location. In this way, locations serve as a contact layer between actors, representing places where interactions occur or contexts that facilitate actor connections. The aim of Pop2net’s bipartite approach to relations is to simplify the generation and management of realistic network structures in ABM. Due to its possible integration into Mesa and AgentPy , networks built with Pop2net can be directly used to run simulations. Pop2net also offers tools to create populations of agents based on empirical micro-data and to validate network properties.

Latest Publications
  • PopBERT. Detecting Populism and Its Host Ideologies in the German Bundestag

    Oct. 1, 2024

    Political Analysis

  • Creative Workers on the Move: How Cultural Fit to a New Organization Enhances Individual Performance

    July 9, 2024

    Academy of Management Annual Meeting Proceedings

  • PopBERT. Detecting populism and its host ideologies in the German Bundestag

    Sept. 22, 2023

    arXiv

See all publications