Ask Your Question

Revision history [back]

Plot a planar graph as a plane graph

I have a graph D which is the bipartite graph of a matrix Y. I know this graph is planar, however when I plot it using the .plot() and output it using .save() it does not plot as a plane graph. I was wondering if there was any nice way to output a graph in a planar form (namely, such that none of the edges intersect). According to this website on the plotting sage math website (can't post url since my karma is too low) there is a plot option 'layout' which seems to have the option 'planar'. I am unsure how to test this, or if this would even achieve what I'm interested in doing.

Plot a planar graph as a plane graph

I have a graph D which is the bipartite graph of a matrix Y. I know this graph is planar, however when I plot it using the .plot() and output it using .save() it does not plot as a plane graph. I was wondering if there was any nice way to output a graph in a planar form (namely, such that none of the edges intersect). According to this website on the plotting sage math website (can't post url since my karma is too low) there is a plot option 'layout' which seems to have the option 'planar'. I am unsure how to test this, or if this would even achieve what I'm interested in doing.