richelbilderbeek/boost_graph_cookbook_1

Reserve vector size

Closed this issue · 1 comments

Here is the thread:

https://www.reddit.com/r/cpp/comments/3xw5q0/a_wellconnected_c11_boostgraph_tutorial/

From mat69:

  • You often create vectors of vertices/edges/names. When using unfiltered graphs you could use reserve in combination with num_edges, num_vertices.

Thanks typo, I will code this issue by hand then :-)