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

Commit

Permalink
remove useless import
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Jan 2, 2021
1 parent 9f786b5 commit 944e04e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sage/graphs/generators/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

# import from Sage library
from sage.graphs.graph import Graph
from sage.graphs import graph
from math import sin, cos, pi

def BullGraph():
Expand Down Expand Up @@ -85,7 +84,7 @@ def BullGraph():
"""
edge_list = [(0, 1), (0, 2), (1, 2), (1, 3), (2, 4)]
pos_dict = {0: (0, 0), 1: (-1, 1), 2: (1, 1), 3: (-2, 2), 4: (2, 2)}
return graph.Graph(edge_list, pos=pos_dict, name="Bull graph")
return Graph(edge_list, pos=pos_dict, name="Bull graph")

def ButterflyGraph():
r"""
Expand Down Expand Up @@ -220,7 +219,7 @@ def ClawGraph():
"""
edge_list = [(0, 1), (0, 2), (0, 3)]
pos_dict = {0: (0, 1), 1: (-1, 0), 2: (0, 0), 3: (1, 0)}
return graph.Graph(edge_list, pos=pos_dict, name="Claw graph")
return Graph(edge_list, pos=pos_dict, name="Claw graph")

def CycleGraph(n):
r"""
Expand Down Expand Up @@ -381,7 +380,7 @@ def CompleteGraph(n):
sage: spring23.show() # long time
sage: posdict23.show() # long time
"""
G = graph.Graph(n, name="Complete graph")
G = Graph(n, name="Complete graph")
if n == 1:
G.set_pos({0: (0, 0)})
else:
Expand Down

0 comments on commit 944e04e

Please sign in to comment.