Reserve vector size
Closed this issue · 1 comments
richelbilderbeek commented
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.
richelbilderbeek commented
Thanks typo, I will code this issue by hand then :-)