Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
git grep -l 'graphs.all.*import' | xargs sed -E -i.bak 's/from sage.g…
Browse files Browse the repository at this point in the history
…raphs.all import graphs/from sage.graphs.graph_generators import graphs/'
  • Loading branch information
Matthias Koeppe committed Jan 17, 2022
1 parent 0694b04 commit 5ec356b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sage/geometry/hyperplane_arrangement/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# http://www.gnu.org/licenses/
#*****************************************************************************

from sage.graphs.all import graphs
from sage.graphs.graph_generators import graphs
from sage.matrix.constructor import matrix, random_matrix
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
Expand Down
2 changes: 1 addition & 1 deletion src/sage/graphs/graph_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ def cospectral_graphs(self, vertices, matrix_function=lambda g: g.adjacency_matr
sage: g[0][1].laplacian_matrix(normalized=True).charpoly()==g[0][1].laplacian_matrix(normalized=True).charpoly() # optional - sage.symbolic
True
"""
from sage.graphs.all import graphs as graph_gen
from sage.graphs.graph_generators import graphs as graph_gen
if graphs is None:
graph_list=graph_gen(vertices, property=lambda _: True)
elif callable(graphs):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/matroids/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# ****************************************************************************

from sage.matrix.constructor import Matrix
from sage.graphs.all import graphs
from sage.graphs.graph_generators import graphs

from sage.rings.integer_ring import ZZ
from sage.rings.finite_rings.finite_field_constructor import GF
Expand Down

0 comments on commit 5ec356b

Please sign in to comment.