#include #include using namespace boost; struct VertexProperty { // ... }; struct EdgeProperty { double length_; // ... }; typedef adjacency_list, property > Graph; typedef subgraph Subgraph; int main () { Subgraph sg(10); typedef property_map::type ewm_t; ewm_t ewm = get (edge_bundle, sg); typedef property_map::type ewm1_t; typedef property_map::type ewm2_t; ewm2_t ewm2 = get (&EdgeProperty::length_, sg); // use ewm in an algorithm ... return 0; }