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)
add a comment