Boost logo

Boost Users :

From: John Reid (j.reid_at_[hidden])
Date: 2007-06-08 06:48:46


Hi,

When a graph is copied via copy.copy(g), extra vertex and edge property
maps are added.

import boost.graph as bgl
g = bgl.Graph()
prop = g.add_vertex_property('prop')
from copy import copy
g_copy = copy(g)
print g.vertex_properties.keys()
print g_copy.vertex_properties.keys()

Output:

g's vertex properties: ['prop']
g_copy's vertex properties: ['object', 'prop']

This property named 'object' contains the same values as the 'prop'
property.

Is this a bug in the pickling support?

I have the latest version from SVN.

Thanks,
John.


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