Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get only the connected graphs from this code

how to get only the connected graphs from this code.

for G in graphs(10):

G.show()

L=G.laplacian_matrix().eigenvalues()

L.sort()

show(L)