Fixed the connections_count that was always equal to distance 0's connections.
update of the layout of the graph.