14 Apr
2011
14 Apr
'11
1:28 p.m.
Hi, On 04/14/2011 02:11 PM, Sebastian Weber wrote:
So in short: Could a copy_graph function be included in graph-tool?
There is of course: u = Graph(g) and u = g.copy() However, both don't do what you want, and return a complete copy of the graph, with filters and all. I have intended to implement "pruning" of filtered vertices / edges for some time, but somehow forgot about it... But I just went ahead now and committed the implementation to git. You can now do this: u = Graph(g, prune=True) Which will give an unfiltered graph "u". Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>