<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __calculate_adjacency_lists(graph):
 """Builds an adjacency list representation for the graph, since we can't guarantee that the internal representation of the graph is stored that way."""

    adj = {}
    for node in graph.get_all_node_ids():
        neighbors = graph.neighbors(node)
        adj[node] = neighbors
    return adj