|
Boost Users : |
Subject: Re: [Boost-users] Graph: create_subgraph not defined
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-06-24 13:12:08
On Thu, 24 Jun 2010, Trevor Harmon wrote:
> On Jun 24, 2010, at 6:50 AM, Jeremiah Willcock wrote:
>
>> Is there a create_subgraph member mentioned in the documentation?
>
> Yes:
>
> http://www.boost.org/doc/libs/1_31_0/libs/graph/doc/subgraph.html
>
> It is also used in the subgraph.cpp example.
>
>> Are you sure that it is not a free (non-member) function rather than a
>> method?
>
> Yes, it is used as a member function in the documentation and example code:
>
> typedef subgraph< adjacency_list > > Graph;
> Graph G0(6);
> .....
> Graph& G1 = G0.create_subgraph();
Note that G0 is of type subgraph<...>, not adjacency_list<...> like you
were using. Could that be the issue?
-- 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