Vertex Property Map changed by graph_draw()
Bug reports:
Please follow the general troubleshooting steps first:
-
Are you running the latest graph-tool
version? -
Do you observe the problem with the current git version? -
Are you using Macports or Homebrew? If yes, please submit an issue there instead: https://github.com/Homebrew/brew/issues and https://trac.macports.org/newticket -
Did you compile graph-tool
manually? -
If you answered yes above, did you use the exact same compiler to build graph-tool
,boost-python
andPython
?
Please replace this section with a brief summary of your issue.
I am running the latest docker image of graph-tool.
When generating a graph with an edge property map of type double, the values in this map are multiplied by 2 after each time the graph is drawn.
cc_g
<Graph object, undirected, with 79 vertices and 232 edges, 1 internal vertex property, 2 internal edge properties, at 0x7fbe191baf70>
cc_g.ep.weight.a
PropertyArray([ 3., 3., 3., 6., 4., 4., 6., 6., 4., 9., 7., 4.,
3., 5., 4., 4., 3., 5., 5., 3., 4., 5., 4., 3.,
5., 3., 3., 5., 5., 4., 3., 3., 3., 3., 4., 5.,
...
...
graph_draw(cc_g, edge_pen_width=cc_g.ep.weight)
<VertexPropertyMap object with value type 'vector<double>', for Graph 0x7fbe191baf70, at 0x7fbe167d46a0>
cc_g.ep.weight.a
PropertyArray([ 6., 6., 6., 12., 8., 8., 12., 12., 8., 18., 14., 8.,
6., 10., 8., 8., 6., 10., 10., 6., 8., 10., 8., 6.,
10., 6., 6., 10., 10., 8., 6., 6., 6., 6., 8., 10.,
8., 6., 6., 6., 6., 12., 6., 6., 6., 12., 8., 6.,
...
...