|
Boost Users : |
Subject: Re: [Boost-users] Graph: create_subgraph not defined
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-06-24 09:50:22
On Wed, 23 Jun 2010, Trevor Harmon wrote:
> 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,
Is there a create_subgraph member mentioned in the documentation? Are you
sure that it is not a free (non-member) function rather than a method?
-- Jeremiah Willcock
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