| 1 | initial version |
You can use graphs.nauty_geng, for example, if you want to iterate over all connected graphs of length 7, you can do:
sage: gen = graphs.nauty_geng("7 -c")
sage: for g in gen:
....: do some stuff with g
See graphs.nauty_geng? for more details.
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.