On Wed, Apr 2, 2008 at 5:43 AM, Jurgis Pralgauskis
<[EMAIL PROTECTED]> wrote:
> n=graphs_query.display_all(num_vertices=5,diameter=3)
>
> gives
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/home/server2/sage_notebook/worksheets/dz0/4/code/33.py", line 8, in
> <module>
>
>  n=graphs_query.display_all(num_vertices=Integer(5),diameter=Integer(3))
>  File "/usr/local/sage/local/lib/python2.5/site-packages/sympy/plotting/",
> line 1, in <module>
>
> NameError: name 'graphs_query' is not defined
>  why?

Do this instead:

sage: G = GraphDatabase()
sage: GraphQuery(G, num_vertices=5,diameter=3).show()

To Emily who wrote this: why isn't there a query method for
the GraphDatabase object, by the way, e.g.,

   GraphDatabase().query(num_vertices=5,diameter=3)

would seem very natural.

 -- William

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to