Commit bc1ada4b authored by Tiago Peixoto's avatar Tiago Peixoto

Merge branch 'bugfix/planar-layout-pos' into 'master'

Ensure supplied position map for planar_layout is owned by view

See merge request !32
parents eabd9979 0b9ddea9
Pipeline #679 passed with stage
in 379 minutes and 6 seconds
......@@ -209,6 +209,8 @@ def planar_layout(g, pos=None):
embed = is_planar(u, embedding=True)[1]
if pos is None:
pos = u.new_vp("vector<double>")
else:
pos = u.own_property(pos)
make_maximal_planar(u)
libgraph_tool_layout.planar_layout(u._Graph__graph,
_prop("v", u, embed),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment