Ask Your Question

Revision history [back]

click to hide/show revision 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: g2 = g.complement()
sage: g2.set_pos(g.get_pos())