I used a fresh opened Sage session.
I didn't define my own function.
Even when I tried with your first line example, without anything else in a new Sage session, I got :
./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.6, Release Date: 2019-01-15 │
│ Using Python 2.7.15. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: sage: map(lambda m: len(list(graphs(m))), range(1,5))
[0, 0, 0, 0]
sage:
I tried "make ptest", but due to other errors related to doc, it doesn't work.
[dochtml] File "/nfs/pdx/disks/lmg_dp_01/zlwang/testing/Rupert/Sage/sage-8.6/local/lib/python2.7/site-packages/sage/algebras/quantum_groups/quantum_group_gap.py", line 33, in <module>
[dochtml] from sage.libs.gap.libgap import libgap
[dochtml] File "sage/libs/gap/libgap.pyx", line 788, in init sage.libs.gap.libgap (build/cythonized/sage/libs/gap/libgap.c:9181)
[dochtml] libgap = Gap()
[dochtml] File "sage/libs/gap/libgap.pyx", line 628, in sage.libs.gap.libgap.Gap.__init__ (build/cythonized/sage/libs/gap/libgap.c:6052)
[dochtml] initialize()
[dochtml] File "sage/libs/gap/util.pyx", line 316, in sage.libs.gap.util.initialize (build/cythonized/sage/libs/gap/util.c:5399)
[dochtml] sig_on()
[dochtml] SignalError: Segmentation fault
[dochtml] [combinat ] loading pickled environment... not yet created
[dochtml] [combinat ] building [inventory]: targets for 367 source files that are out of date
[dochtml] [combinat ] updating environment: 367 added, 0 changed, 0 removed
[dochtml] Error building the documentation.
Thank you and please help.