On Wed, Mar 13, 2019 at 4:04 AM Ai Bo <boaisp...@gmail.com> wrote: > > I also tried with the example in the document but I got different result. > sage: for i in range(7): > ....: print(len(list(graphs(i))))
Did you try this in a freshly opened Sage session? In Python it is possible to break functionality of the system by e.g. changing a library function, e.g. if you created a function called graphs, you'd be surprised. E.g. sage: map(lambda m: len(list(graphs(m))), range(1,5)) # at it should be [1, 2, 4, 11] sage: def graphs(k): ....: if k<2: return [1] ....: return [] ....: sage: map(lambda m: len(list(graphs(m))), range(1,5)) # what you have now? [1, 0, 0, 0] --------------------- if something is still wrong you can run tests: make ptest and check the output in logs/ptest.log -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.