Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCati committed Feb 13, 2023
1 parent fd736c8 commit 5bd750c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/graphs/digraph_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ def StronglyRegular(self, n):
"""
from sage.combinat.matrices.hadamard_matrix import skew_hadamard_matrix
from sage.matrix.constructor import ones_matrix, identity_matrix
if skew_hadamard_matrix(n+1, existence=True) is not True:
if skew_hadamard_matrix(n + 1, existence=True) is not True:
raise ValueError(f'strongly regular digraph with {n} vertices not yet implemented')

H = skew_hadamard_matrix(n+1, skew_normalize=True)
H = skew_hadamard_matrix(n + 1, skew_normalize=True)
M = H[1:, 1:]
M = (M + ones_matrix(n)) / 2 - identity_matrix(n)
return DiGraph(M, format='adjacency_matrix', name=f'Strongly regular digraph')
return DiGraph(M, format='adjacency_matrix', name='Strongly regular digraph')

def Paley(self, q):
r"""
Expand Down

0 comments on commit 5bd750c

Please sign in to comment.