Graph and external properties
Hello everyone, I am currently trying to implement a graph algorithm using boost::graph but I ran into a problem which I don't know how to fix. I already asked this question http://stackoverflow.com/questions/8234910/external-property-map-tied-to-std... but I got no answer yet, apart from someone telling me that "Boost.Graph" is borderline unusable. I thought that you people wouldn't let this stand, so I am just asking you: I need some variables stored in a vector to be accessible via an operator[](edge_descriptor&), I think that this could be done using external properties, but since I already use bundled internal properties, I am not sure how to go ahead. I basically need something as in http://www.boost.org/doc/libs/1_36_0/libs/property_map/iterator_property_map.... I would very much appreciate it someone would just drop me a few lines of code to illustrate how to solve the problem. g4hx
On Thu, 24 Nov 2011, g4hx wrote:
Hello everyone,
I am currently trying to implement a graph algorithm using boost::graph but I ran into a problem which I don't know how to fix. I already asked this question http://stackoverflow.com/questions/8234910/external-property-map-tied-to-std... but I got no answer yet, apart from someone telling me that "Boost.Graph" is borderline unusable. I thought that you people wouldn't let this stand, so I am just asking you: I need some variables stored in a vector to be accessible via an operator[](edge_descriptor&), I think that this could be done using external properties, but since I already use bundled internal properties, I am not sure how to go ahead. I basically need something as in http://www.boost.org/doc/libs/1_36_0/libs/property_map/iterator_property_map.... I would very much appreciate it someone would just drop me a few lines of code to illustrate how to solve the problem.
I just answered this on the StackOverflow page you posted. See if that answer is helpful. -- Jeremiah Willcock
participants (2)
-
g4hx
-
Jeremiah Willcock