Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sagemathgh-36461: fix the linters again
    
Fix the broken linters again

broken just recently in` graphs/graph.py` sagemath#36354

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36461
Reported by: Frédéric Chapoton
Reviewer(s): Frédéric Chapoton, Kwankyu Lee
  • Loading branch information
Release Manager committed Oct 16, 2023
2 parents ee1d0c8 + 12fe59f commit e966c8a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sage/graphs/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -5005,8 +5005,8 @@ def minor(self, H, solver=None, verbose=0, induced=False, *, integrality_toleran
sage: gg.is_isomorphic(h)
True
TESTS::
TESTS:
A graph `g` may have a minor isomorphic to a given graph `h` but no
induced minor isomorphic to `h`::
Expand Down Expand Up @@ -5095,7 +5095,7 @@ def minor(self, H, solver=None, verbose=0, induced=False, *, integrality_toleran

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

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

return {v : count[v] for v in vertices or self}
return {v: count[v] for v in vertices or self}

@doc_index("Clique-related methods")
def cliques_get_max_clique_graph(self):
Expand Down Expand Up @@ -7653,7 +7653,7 @@ def cliques_containing_vertex(self, vertices=None, cliques=None):
for v in c:
d[v].append(c)

return {v : d[v] for v in vertices or self}
return {v: d[v] for v in vertices or self}

@doc_index("Clique-related methods")
def clique_complex(self):
Expand Down

0 comments on commit e966c8a

Please sign in to comment.