Re: [Boost-users] [Graph] Computing reachable vertices on a graph

Hi Steven, I just tried your solution, which works perfectly well. The vector is actually sized to the number of reachable nodes. I just added a reachable.reserve(max_number_of_nodes) to avoid multiple reallocations. Thank you very much for your help, Florian -----Message d'origine----- De : boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org]De la part de Steven Watanabe Envoyé : vendredi 20 mars 2009 18:36 À : boost-users@lists.boost.org Objet : Re: [Boost-users] [Graph] Computing reachable vertices on a graph AMDG Florian.PONROY@fr.thalesgroup.com wrote:
I need to get the list of all reachable vertices from a given vertex in a graph. I'm currently using the BFS algorithm to achieve that, which seems to fit well to my need.
How does this work:
#include
participants (1)
-
Florian.PONROY@fr.thalesgroup.com