Private Readonly adjacencyAdjacency list representation of the network
Private configNetwork configuration
Private connectionConnection ID counter
Private Readonly connectionsQuick lookup for connections by ID
Private Readonly incomingReverse index for incoming connections
Private statsNetwork statistics cache
Static prefixedAdd a connection between two agents
Private countCount connected components
Private dfsGet all connections in the network
Get current configuration
Get connection between two agents
Get connection by ID
Get all connections for an agent
Get agent degree (number of connections)
Get incoming connections for an agent
Update configuration
NetworkManager - Manages social networks between agents
Features:
Educational Context: Simulates social dynamics in communities, allowing modeling of support networks, economic relationships, and social influence patterns.