diff --git a/src/sage/graphs/graph_database.py b/src/sage/graphs/graph_database.py index 89ae6c2e250..7c50a1e2f0f 100644 --- a/src/sage/graphs/graph_database.py +++ b/src/sage/graphs/graph_database.py @@ -48,9 +48,7 @@ from . import graph from sage.rings.integer import Integer from sage.databases.sql_db import SQLDatabase, SQLQuery -from sage.features.databases import DatabaseGraphs from sage.graphs.graph import Graph -dblocation = DatabaseGraphs().absolute_filename() def degseq_to_data(degree_sequence): @@ -994,6 +992,8 @@ class will also interface with the optional database package containing 'sql': 'TEXT', 'unique': False}}} """ + from sage.features.databases import DatabaseGraphs + dblocation = DatabaseGraphs().absolute_filename() SQLDatabase.__init__(self, dblocation) def _gen_interact_func(self, display, **kwds):