Commit 0b9ddea9 authored by Jeff Trull's avatar Jeff Trull
Browse files

Ensure supplied position map for planar_layout is owned by view

parent eabd9979
Pipeline #678 passed with stage
in 297 minutes and 11 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