It looks like the reference manual needs to be updated. And you pointing this out makes me rethink whether we should set some defaults to make it easier to get the list out. But on the current version, to get the list that you want you need to actually pull it from a GraphQuery. The code looks like this:
sage: Q = GraphQuery(display_cols=['graph6'], num_vertices=7, diameter=5) sage: L = Q.get_graphs_list() Thanks for pointing out the discrepancy with the manual. -Emily On Jan 30, 1:44 pm, Jason Grout <[email protected]> wrote: > davidp wrote: > > Hi, > > > Cutting and pasting commands from the Reference: > > >http://sagemath.org/doc/ref/node47.html > > > gives me: > > > ======================================= > >>> sage > > ---------------------------------------------------------------------- > > | Sage Version 3.2.2, Release Date: 2008-12-18 | > > | Type notebook() for the GUI, and license() for information. | > > ---------------------------------------------------------------------- > > sage: graphs_query = GraphDatabase() > > sage: L = graphs_query.get_list(num_vertices=7, diameter=5) > > --------------------------------------------------------------------------- > > AttributeError Traceback (most recent call > > last) > > > /home/davidp/math/sandpile/sage/sage-sandpile1.2/<ipython console> in > > <module>() > > > AttributeError: 'GraphDatabase' object has no attribute 'get_list' > > sage: > > =================================== > > I have also tried cutting and pasting code from the online > > documentation for GenericGraphQuery and similar functions, also > > getting errors. > > > I am running sage under Fedora. > > > Any suggestions would be much appreciated. (I have a thesis student > > who would like to use these functions.) > > I'm not sure about the errors above, but if you want to access the > online version that the database is based on, it's available here: > > http://good.math.iastate.edu/grout/graphs/ > > Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
