Hi,
using boost::graph with bundled properties. I want to be able to run searches using a variety of different possible edge weighting schemes. I'd like to not create an additional class for the bundled properties if possible, and pass in different weight maps depending on the type of search without creating a new graph or modifying all of the existing properties in the graph.
Can I manually build a property_map for edge_weight_t? Here's what I've got so far:
typedef boost::property_map<SSPSGraph_t, boost::edge_weight_t>::type WeightMap;
typedef boost::property<boost::edge_weight_t, float> DistanceProperty;
And I'd like to just be able to do
WeightMap distances;
edge_descriptor_t e = some_edge_or_another;
float d=some_derived_distance_value;
And assign distances[e] to the appropriate values--
distances[e]= ?
Or do I just need to break down and make up a new structure for the bundled properties-- something I've been trying to avoid-- and create the weight map from that? New to boost::graph; not assuming I'm not doing something entirely stupid here.