> I got my information in the previous post from doing > > sage: graphs? > > After the (gigantic) list of graphs, it gave the options and > documentation for calling graphs(). It wasn't very obvious in the first > few pages of documentation that you could call graph directly, though. > I think that probably should be documented better. >
Yeah, I was going to try that but unfortunately had the notebook issue. That is where I found the (old) graphs(n) command in the first place, after much stumbling. > Testing for properties, of course, could take a long time, depending on > the property. That's one of the big reasons I built that graph > database--I was testing for properties that were not very convenient to > calculate every time I needed to query on them. So you could also query > for graphs that had properties that were precomputed as part of the > database. Emily could fill you in with the syntax for the graph > querying if you're not already familiar with it. Yes, that was my impression too. A lot of this depends on where things go with the course, of course. > > I'll respond to the rest of your email more fully later when I have some > time, but would the following be simple enough for new students? It > uses the very nice list comprehension functionality in python. > > sage: [g for g in graphs(3) if g.size()==3] > [Graph on 3 vertices] This is definitely better; I knew about the comprehension but not the ability to include the "if" statement. Here it's a lot clearer why things are where they are. Please don't feel compelled to respond to the rest of the screed - I really appreciate whatever hints developers can give to users on these things. It looks like after I get a chance to do a few tests on my own computer of the speed of a few items like this we should be able to at least attempt using this syntax, in conjunction with graphs_list.show_graphs(list). As always, those of us primarily using Sage for pedagogical purposes very much thank those of you developing it on the research end of things. kcrisman --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---