Move proper size initialization of lists closer to the graph data structures