From your link seem that I am in the same category of 'no_init' search so
Thanks Alex,
Yes the m_distance in the visitor is the result of a previous search (not
the current working one).
A couple of questions.
If I use my own colour map as you describe, Could I also colour it
beforehand and not in the visitor? (the ones that are outside the cutoff
will always be outside, this will not change during search)
the colour map that I provide is used directly and its not 're-initialised'.
What Im trying to achieve is to colour some vertices black so that the
search will consider them "disconnected" and leave them with 'inf' distance.
This also means that these vertices won't be part of any later computation
inside the visitor, no relaxation etc (as an extension of what I have here:
in a 'special brandes betweenness' visitor I could, theoretically at the
moment, exclude them for the extra 'delta' calculations inside the visitor
steps).
Right? If Im missing something please let me know.
Now the code. Im having treble building the correct 'no_init' call.
Googling around helped but not much.
Any ideas? Thanks
std::vector<Vertex> predecessors(boost::num_vertices(m_ugraph));
std::vector<Weight> distances(boost::num_vertices(m_ugraph),
std::numeric_limits<double>::max() );
IndexMap indexMap = boost::get(boost::vertex_index, m_ugraph);
PredecessorMap predecessorMap(&predecessors[0], indexMap);
DistanceMap distanceMap(&distances[0], indexMap);
// What is the definition of the ColorMap if you use it outside a visitor?
typedef typename boost::property_traits<ColorMap>::value_type
color_type;
typedef typename boost::color_traits