
18 Jun
2013
18 Jun
'13
7:51 a.m.
Hello, I am wondering what the function boost::graph_traits<G>::null_vertex() http://www.boost.org/doc/libs/1_53_0/libs/graph/doc/Graph.html is for, and why there is no equivalent function null_edge() best regards, andreas -- Andreas Fabri, PhD Chief Officer, GeometryFactory Editor, The CGAL Project phone: +33.492.954.912 skype: andreas.fabri

18 Jun
18 Jun
8:28 a.m.
2013/6/18 Andreas Fabri <andreas.fabri@geometryfactory.com>
Because often you will want to assign some data to point back to a vertex. I mean, a graph holds a vertex -> custom data mapping, but that custom data will want to keep vertex id back. Thing is it has to store some "invalid" value before mapping happens and that is when null_vertex() helps. I hope that is clear enough. Cheers
4392
Age (days ago)
4392
Last active (days ago)
2 comments
2 participants
participants (2)
-
Andreas Fabri
-
Szymon Gatner