On Sun, 1 Apr 2018, Henri Girard wrote:

I am surprise because graph is different it should n't because the adjacency matrix is the same ?

They are:

sage: W = graphs.WheelGraph(4)
sage: H = Graph(W.adjacency_matrix ())
sage: W == H
True

However, for almost every built-in graph or graph family Sage also knows some "nice" way to draw it. For other graphs it tries to found a "nice" drawing by partly randomized algorithm.

You can also try

H.show(layout='planar')

--
Jori Mäntysalo

Reply via email to