First time here? Check out the FAQ!
answered 2019-02-12 10:13:55 +0100
You can replace graphs(10) by
graphs(10)
filter(lambda g: g.is_connected(), graphs(10))
It is more efficient to use the nauty backend; replace graphs(10) by
nauty
graphs.nauty_geng('10 -c')