| 1 | initial version |
You can replace graphs(10) by
filter(lambda g: g.is_connected(), graphs(10))
It is more efficient to use the nauty backend; replace graphs(10) by
graphs.nauty_geng('10 -c')
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.