graph_draw changes the value of a property map
Please follow the general troubleshooting steps first:
- [Y ] Are you running the latest
- [Y] Do you observe the problem with the current git version?
- [N] 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
- [N] Did you compile
- [Not sure] If you answered yes above, did you use the exact same compiler to build
Running the code below somehow causes the value of the property map ew to double each time (when it's more than one edge, each value doubles). It does not happen on other properties that I have tried, and changing ew with ew.copy() in graph_draw runs as expected. I looked at the code for graph_draw but can't figure out what is happening
g.add_vertex(2) g.add_edge(0,1) ew = g.new_ep('double') ew[g.edge(0,1)] = 1 graph_draw(g, edge_pen_width = ew) print(ew.a) graph_draw(g, edge_pen_width = ew) print(ew.a) graph_draw(g, edge_pen_width = ew) print(ew.a) graph_draw(g, edge_pen_width = ew)
I am running this in Ubuntu WLS, Windows 10 version 2004. Installed it through conda, and I am running it on a jupyter notebook.