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)
From your link seem that I am in the same category of 'no_init' search so 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.