Ask Your Question

Revision history [back]

plot graphs with graph in vertices

I have a graph whose vertices are made of graphs. Is there a way to plot them nicely from Sage? Doing

sage: G0 = graphs.PetersenGraph().copy(immutable=True)
sage: G1 = graphs.CycleGraph(4).copy(immutable=True)
sage: G = Graph([(G0,G1)])
sage: G.plot()

The names of the graph are in the vertices not the graphics of them.