Skip to content

Commit 65a4946

Browse files
committed
Moved cimport parent at the top of the file
1 parent 2fc50b0 commit 65a4946

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/graphs/line_graph.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cython: binding=True
2+
3+
from sage.structure.element cimport parent
24
r"""
35
Line graphs
46
@@ -407,7 +409,6 @@ def line_graph(g, labels=True, return_labels=False):
407409
labels = True
408410
origlabels_dic = {(u, v, id): (u, v, label)
409411
for id, (u, v, label) in enumerate(g.edge_iterator())}
410-
from sage.structure.element cimport parent
411412
g = parent(g)([g, origlabels_dic.keys()], format='vertices_and_edges', multiedges=True)
412413
413414
if g._directed:

0 commit comments

Comments
 (0)