diff --git a/include/boost/graph/subgraph.hpp b/include/boost/graph/subgraph.hpp index 0a98ba85..c394b21a 100644 --- a/include/boost/graph/subgraph.hpp +++ b/include/boost/graph/subgraph.hpp @@ -43,7 +43,7 @@ namespace boost { // Invariants of an induced subgraph: // - If vertex u is in subgraph g, then u must be in g.parent(). - // - If edge e is in subgraph e, then e must be in g.parent(). + // - If edge e is in subgraph g, then e must be in g.parent(). // - If edge e=(u,v) is in the root graph, then edge e // is also in any subgraph that contains both vertex u and v. @@ -744,9 +744,9 @@ namespace boost { template void - put(Property, const subgraph& g, const Key& k, const Value& val) + put(Property, subgraph& g, const Key& k, const Value& val) { - typedef typename property_map< subgraph, Property>::const_type PMap; + typedef typename property_map< subgraph, Property>::type PMap; PMap pmap(&g, get(Property(), g.m_graph)); pmap[k] = val; }