Boost logo

Boost Users :

Subject: [Boost-users] Graph: create_subgraph not defined
From: Trevor Harmon (Trevor.W.Harmon_at_[hidden])
Date: 2010-06-23 20:06:54


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net