for g in graphs.nauty_geng("8 -c"):
h=g.laplacian_matrix().eigenvalues()
h.sort()
show(h)
g.show()
Using this code I have generate all connected graphs on 8 vertices. Now among all these collection I need only those bicyclic graph or graphs (if it is more than one) ( A graph G of order n is called a bicyclic graph if G is connected and the number of edges of G is n + 1, here we need those graphs having exactly 9 edges) on 9 edges, whose algebraic connectivity (i.e the second smallest laplacian eigenvalue) is maximum among all other bicyclic graphs on 8 vertices and 9 edges.