How to put the drawing of graphs in a matrix or list
I have got some graphs on 5 vertices.
count = 0
for g in graphs.nauty_geng("5 1:5"):
count = count+1
print(count)
we got 19 graphs. I want to show them but get long output using following codes, and it is very bad for viewing.
for g in graphs.nauty_geng("5 1:5"):
g.show()
I thought of using matrix or list storage these drawings of graph , but it failed.
glist= [g for g in graphs.nauty_geng("5 1:5")]
map(show,glist)
we got noting from outputs:
<map object at 0x6fdf37c3cf8>
This is what Maple did well.
with(GraphTheory):
graphsof5c := [NonIsomorphicGraphs(5, 1..5,output = graphs, outputform = graph)]:
DrawGraph~(graphsof5c,size=[300,300],stylesheet=[vertexborder=false,vertexpadding=20,edgecolor = "Blue",
vertexcolor="Gold"])
My points are less than 60 points, I can’t upload corresponding pictures, sorry.