It is much faster to say sum(1 for _ in graphs.nauty_geng(7)) than sum(1 for _ in graphs(7)), and after #19919 we have nauty as a standard package.

Will I break something if I change graphs(n) without any additional parameter to use nauty? A user really needing the old code could then say graphs(n, property=lambda x: True). I think that Sage documentation makes no promise at all about the order in which graphs are generated.

--
Jori Mäntysalo

Reply via email to