Le mardi 29 novembre 2016 17:42:51 UTC+1, Peleg Michaeli a écrit : > > Dear list members, > > I was wondering what really makes the difference between the graph > generators in `basic.py` and those in `families.py`. >
When we created the directory `generators` to split a big file with plenty of generators into smaller files, we planed to put in `basic.py` graphs without parameters (HouseGraph, PetersenGraph, etc.) and graphs like path, cycle, clique, grids, etc. so basic graphs, and in `families.py` more complex graphs. Now we have `smallgraphs.py`. So we could now move graphs without parameter from basic to into `smallgraphs.py`, the others from basic to families, and to remove file basic.py. > > For one concrete example, I was wondering why `LollipopGraph` appears in > `basic.py` and `BarbellGraph` appears in `families.py`. These two graphs > are very similar. > > Added at different period of time, so we need to reorganize these files. > I ask this for a practical reason: I would like to add a couple of graph > families, including the Tadpole graph (which is very similar to the > Lollipop graph and the Barbell graph) and the Dipole graph (which is one of > the simplest multigraphs). > Good !. Concerning the problem with range, as said by others, the simple fix is list(range(...)). Best (and welcome). -- 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.