Open JohnCoconut opened 6 years ago
We have two ways of getting graph attributes in the tutorial. For example, vertex_descriptor
vertex_descriptor
using vd = typename graph::vertex_descriptor; using vd = typename boost::graph_traits<graph>::vertex_descriptor;
The difference is graph_traits is able to store type information externally, and it's easy to customize it by template partial specialization.
graph_traits
Sounds like a great suggestion. Feel encouraged to change code to use graph_traits :+1:
We have two ways of getting graph attributes in the tutorial. For example,
vertex_descriptor
The difference is
graph_traits
is able to store type information externally, and it's easy to customize it by template partial specialization.