Is there a way to plot a (graph theory) graph in sage in such a way that physical distance between vertices is at least a threshold (say 1cm)?
Graph layouts should be the way to do it. I am looking for a solution which is not very complicated.
Context: I need to plot a cubic planar graph. The planar layout provided by sage is not very satisfactory (spring layout gives better planar drawings)
Thank you
One of the options for plotting graphs is the circular layout, which is a way to space out vertices consistently.
Other options are documented in the documentation which can be accessed by:
One can also show the graph using javascript:
Note that one can also set the positions of the vertices explicitly, see the
set_posmethod of graphs.For more on
set_posand all graph plotting topics: