Boost logo

Boost Users :

Subject: Re: [Boost-users] Strange problem with boost/graph/subgraph.hpp
From: Paolo Bolzoni (paolo.bolzoni.brown_at_[hidden])
Date: 2014-02-27 05:59:49


Sorry list, my brain digested the "Also the graph must have internal
vertex_index and edge_index properties."
line just after writing the previous email.

On Thu, Feb 27, 2014 at 11:56 AM, Paolo Bolzoni
<paolo.bolzoni.brown_at_[hidden]> wrote:
> Dear list,
> I cannot compile a simple example using the subgraph implementation.
> I enclosed the code in the bottom of this email. It is quite short,
> but it is the whole code. It does not compile with errors from
> inside boost/graph/detail/adjacency_list.hpp about the impossiblity
> of making a reference to void.
>
> I read the subgraph documentation but I cannot understand why it
> does not work.
>
> Can anyone enlighten me?
>
> Your faithfully,
> Paolo
>
>
> The code:
>
> ------------------ >8
>
> #include <boost/graph/adjacency_list.hpp>
> #include <boost/graph/subgraph.hpp>
>
> typedef boost::adjacency_list
> <
> boost::listS,
> boost::listS,
> boost::undirectedS
>> main_graph;
>
> typedef boost::subgraph <main_graph> sub_graph;
>
> typedef boost::graph_traits<sub_graph>::vertex_descriptor Bvertex;
>
> 8< ------------------


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