Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

graphs.planar_graphs

So I'm a bit confused by the documentation of graphs.planar_graphs I thought it would just generate a list of planar graphs so I don't know why the following code doesn't work (and also why I need to do list(l) )

l = graphs.planar_graphs(4, dual=False)
gen=list(l) #don't know why this is necessary k=len(gen) ii=1 G=gen[ii] p=G.plot() p.show()