
24 Jun
2010
24 Jun
'10
12:06 a.m.
Hi, I've extended an adjacency list into a custom class in order to add specialized fields and convenience methods. It was working fine until I tried to call create_subgraph on it. Simplified example: #include <boost/graph/adjacency_list.hpp> #include <boost/graph/subgraph.hpp> using namespace boost; class MyGraph : public adjacency_list<vecS, vecS, bidirectionalS, size_t, property<edge_index_t, std::size_t> > { }; int main(int,char*[]) { MyGraph g; g.create_subgraph(); return 0; } This gives a compiler error: mygraph.cpp:12: error: ‘class MyGraph’ has no member named ‘create_subgraph’ I've no idea why this is giving me an error. Any suggestions? Thanks, Trevor