|
Boost Users : |
Subject: Re: [Boost-users] [BGL] Serializing a filtered_graph
From: Cedric Laczny (cedric.laczny_at_[hidden])
Date: 2010-11-18 08:49:05
On Thursday, 18. November 2010 14:23:35 Adam Spargo wrote:
> Hi,
>
> > Could you please specify how to avoid the copy and get the original
> > graph- type?
>
> Yes, that would be useful :o) I'm currently using filtered graphs, but I
> can imagine situations where the memory overhead of storing a new graph
> would be preferable to the CPU overhead of using the filtered graph.
Hi Adam,
I don't know if you are actually particulary interested into the steps that
will _not_ involve copying, or if you are simply interested into getting the
graph resulting from the filtering into the original graph-type.
In case you don't care about the copying, you can simply use copy_graph()
(defined in boost/graph/copy.hpp).
Although I could imagine that avoiding copying might be quite crucial for your
applications.
Best,
Cedric
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