Prepared the connections graph.