ConnectionManager now keeps track of the number of connections in the graph