Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] add_edge also adds a vertex
From: Olivier Tournaire (olitour_at_[hidden])
Date: 2010-02-08 17:12:41


Andrew,

2010/2/8 Andrew Sutton <andrew.n.sutton_at_[hidden]>

>
> Here is the backtrace from gdb (sorry ...). Eric, no I did not forget to
>> add vertices in my graph. It is build in another function that I removed for
>> clarity. I have 333 vertices in my graph, and 4 edges. Do I correctly use
>> the edge_reverse property_map?
>>
>
> Can you pin down a line number?
>

Sorry for my previous message. Enabling debug flags, I had a better idea of
the problem:

/usr/include/boost/graph/kolmogorov_max_flow.hpp:115: [...] Assertion
`m_rev_edge_map[m_rev_edge_map[*ei]] == *ei' failed.

So, I add in my code:

    rev[p_reverse.first] = p.first;
    // ...
    rev[p2_reverse.first] = p2.first;

It seems now to work correctly.
Thanks for your help.

Regards,

Olivier

>
> Andrew Sutton
> andrew.n.sutton_at_[hidden]
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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