Re: [Boost-users] Remove edge
Hi Mr. Michael Olea,
thanks for the replay, for the example code and for the help :-)
I have tested your code and it works perfectly.
But I have a problem, my graph isn't static but dynamic.
In fact, the arcs weights are assigned dynamicaly and I don't understand how to adapt your code to my code.
Can you help me?
Sorry for my poor english,
Best regards.
This is an example of my code that I want to adapt with remove_edge_if():
#include <iostream>
#include <ctime>
#include <utility>
#include
On Feb 16, 2009, at 11:37 PM, Gianni Loiacono wrote:
Hi Mr. Michael Olea, thanks for the replay, for the example code and for the help :-) I have tested your code and it works perfectly. But I have a problem, my graph isn't static but dynamic. In fact, the arcs weights are assigned dynamicaly and I don't understand how to adapt your code to my code. Can you help me? Sorry for my poor english, Best regards.
Ciao, signore Gianni Loiacono.
It does not matter that the arc weights are assigned dynamically;
what matters is that when deleteEdges is called they are stored in a
property map that you have called "capacityCut". So, using the
"Remover" class from ex_remove_if.cpp, you could write deleteEdges
something like this:
void deleteEdges()
{
Remover< property_map
Hi Michael,
Thanks thanks thanks thanks a lot :)
It works perfectly ;)
Best regards,
Gianni.
________________________________
Da: Michael Olea
Hi Mr. Michael Olea, thanks for the replay, for the example code and for the help :-) I have tested your code and it works perfectly. But I have a problem, my graph isn't static but dynamic. In fact, the arcs weights are assigned dynamicaly and I don't understand how to adapt your code to my code. Can you help me? Sorry for my poor english, Best regards.
Ciao, signore Gianni Loiacono.
It does not matter that the arc weights are assigned dynamically; what matters is that when deleteEdges is called they are stored in a property map that you have called "capacityCut". So, using the "Remover" class from ex_remove_if.cpp, you could write deleteEdges something like this:
void deleteEdges()
{
Remover< property_map
participants (2)
-
Gianni Loiacono
-
Michael Olea