1 | initial version |
With g.plot(save_pos = True)
the layout used by Sage in the plot is saved in g
. You can obtain it by doing g.get_pos()
and give them to another graph with h.set_pos(g.get_pos())
.
sage: g = graphs.KneserGraph(5,2)
sage: g.show(save_pos=True)
sage: g2 = g.complement()
sage: g2.set_pos(g.get_pos())
sage: g2.show()