code: def __calculate_adjacency_lists(graph):
      
      adj = {}
      for node in graph.get_all_node_ids():
          neighbors = graph.neighbors(node)
          adj[node] = neighbors
      return adj
docs: Builds an adjacency list representation for the graph, since we can't guarantee that the
          internal representation of the graph is stored that way.