Boost logo

Boost Users :

Subject: Re: [Boost-users] [Graph] Checking if a vertex_descriptor is valid
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-04-01 16:49:49


>
> Obviously, vertex indice 424242 does not exist, but test fails, and
> function
> does not return, leading the a crash of the following algorithm (BFS or
> Dijkstra).
>
> What did I do wrong?
>
> Thanks for your help.
>

I would guess that the vertex() function is actually constructing a vertex
object or descriptor - not actually trying to access the given vertex. You
probably need to use the vertices() function to access the collection and
then get the vertex that you need.

Andrew Sutton
andrew.n.sutton_at_[hidden]



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net