Hello,
I'm using the BFS visitor that appears in the BGL book (p 66), which can
also be found here:
http://boost.org/libs/graph/doc/kevin_bacon.html
I would like to compute a quantity that depends on the bacon number of a
vertex, but only to distance d_max as my graphs are quite big (and I need to
compute the quantity for each vertex, so I want a speedy computation).
Ideally, I'd like to write something like the code below (my code appears
after the comment), but this doesn't seem to work. Am I missing something
basic?
template <typename DistanceMap>
class bacon_number_recorder : public default_bfs_visitor
{
public:
bacon_number_recorder(DistanceMap dist) : d(dist) { }
template