Skip to content

Commit 8f337cf

Browse files
author
Release Manager
committed
gh-36461: fix the linters again Fix the broken linters again broken just recently in` graphs/graph.py` #36354 ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. URL: #36461 Reported by: Frédéric Chapoton Reviewer(s): Frédéric Chapoton, Kwankyu Lee
2 parents 47b5eb9 + 12fe59f commit 8f337cf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sage/graphs/graph.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5005,8 +5005,8 @@ def minor(self, H, solver=None, verbose=0, induced=False, *, integrality_toleran
50055005
sage: gg.is_isomorphic(h)
50065006
True
50075007
5008-
TESTS::
5009-
5008+
TESTS:
5009+
50105010
A graph `g` may have a minor isomorphic to a given graph `h` but no
50115011
induced minor isomorphic to `h`::
50125012
@@ -5095,7 +5095,7 @@ def minor(self, H, solver=None, verbose=0, induced=False, *, integrality_toleran
50955095

50965096
# if induced is True
50975097
# condition for induced subgraph ensures that if there
5098-
# doesnt exist an edge(h1, h2) in H then there should
5098+
# does not exist an edge(h1, h2) in H then there should
50995099
# not be an edge between representative sets of h1 and h2 in G
51005100
if induced:
51015101
for h1, h2 in H.complement().edge_iterator(labels=False):
@@ -5108,7 +5108,7 @@ def minor(self, H, solver=None, verbose=0, induced=False, *, integrality_toleran
51085108
try:
51095109
p.solve(log=verbose)
51105110
except MIPSolverException:
5111-
if induced:
5111+
if induced:
51125112
raise ValueError("This graph has no induced minor isomorphic to H !")
51135113
else:
51145114
raise ValueError("This graph has no minor isomorphic to H !")
@@ -6657,7 +6657,7 @@ def cliques_maximal(self, algorithm="native"):
66576657
raise ValueError("Algorithm must be equal to 'native' or to 'NetworkX'.")
66586658

66596659
@doc_index("Clique-related methods")
6660-
def clique_maximum(self, algorithm="Cliquer", solver=None, verbose=0,
6660+
def clique_maximum(self, algorithm="Cliquer", solver=None, verbose=0,
66616661
*, integrality_tolerance=1e-3):
66626662
"""
66636663
Return the vertex set of a maximal order complete subgraph.
@@ -6901,7 +6901,7 @@ def cliques_number_of(self, vertices=None, cliques=None):
69016901
for c in cliques:
69026902
count.update(c)
69036903

6904-
return {v : count[v] for v in vertices or self}
6904+
return {v: count[v] for v in vertices or self}
69056905

69066906
@doc_index("Clique-related methods")
69076907
def cliques_get_max_clique_graph(self):
@@ -7653,7 +7653,7 @@ def cliques_containing_vertex(self, vertices=None, cliques=None):
76537653
for v in c:
76547654
d[v].append(c)
76557655

7656-
return {v : d[v] for v in vertices or self}
7656+
return {v: d[v] for v in vertices or self}
76577657

76587658
@doc_index("Clique-related methods")
76597659
def clique_complex(self):

0 commit comments

Comments
 (0)