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

Commit

Permalink
trac #18780 review (pep8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Jun 24, 2015
1 parent 60e1aca commit 0872ae9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/sage/graphs/generators/smallgraphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3746,7 +3746,7 @@ def PetersenGraph():

def PerkelGraph():
r"""
Return the Perkel Graph
Return the Perkel Graph.
The Perkel Graph is a 6-regular graph with `57` vertices and `171` edges. It
is the unique distance-regular graph with intersection array
Expand All @@ -3759,13 +3759,12 @@ def PerkelGraph():
Perkel Graph: Graph on 57 vertices
sage: g.is_distance_regular(parameters=True)
([6, 5, 2, None], [None, 1, 1, 3])
"""
g = Graph(name="Perkel Graph")
for i in range(19):
g.add_edges(((0,i),(1,(i+j)%19)) for j in [2,5,7])
g.add_edges(((0,i),(2,(i+j)%19)) for j in [5,-4,-8])
g.add_edges(((1,i),(2,(i+j)%19)) for j in [7,-4,-5])
g.add_edges(((0, i), (1, (i + j) % 19)) for j in [2, 5, 7])
g.add_edges(((0, i), (2, (i + j) % 19)) for j in [5, -4, -8])
g.add_edges(((1, i), (2, (i + j) % 19)) for j in [7, -4, -5])
g.relabel()
_circle_embedding(g,[0, 2, 3, 35, 8, 33, 45, 5, 53, 51, 18, 50, 29, 46, 30,
48, 40, 17, 20, 27, 43, 16, 7, 14, 6, 4, 15, 41, 24, 37,
Expand Down

0 comments on commit 0872ae9

Please sign in to comment.