def get_connections(network):
    """
    Function creates a dictionary with agent id's as a key and adjacent nodes as a value.
    :param network: object of graph
    :type network: networkx.classes.graph.Graph 
    """
    return {agent_id: list(adj_agents.keys()) for (agent_id, adj_agents) in network.adjacency()}