Thank you... Planar do it

Le 01/04/2018 à 07:51, Jori Mäntysalo a écrit :
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')


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to