On 7/20/06, Loïc Joly
Hello,
When I run the example code of topo_sort.cpp in the BGL examples folder, it works perfectly. However, if I replace in this example:
typedef adjacency_list
> Graph; By:
typedef adjacency_list
> Graph;
It compiles, but during execution, some assert occurs.
<snip>
Does anybody have any idea of what the problem might be ?
Best regards,
-- Loïc
Hi Loïc,
Did you initialize the vertex index map? If you're using a std::vector
to store the vertices, you get a vertex index map for free, but if you
use anything else, (a std::list, for example) you must actually go
through all of the vertices and set their index, like so:
property_map