Skip to content

Commit

Permalink
count_homomorphisms.py: Changes according to linter
Browse files Browse the repository at this point in the history
  • Loading branch information
guojing0 committed Jun 5, 2024
1 parent e512f8a commit 19d4ec4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/graphs/homomorphisms/count_homomorphisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def __init__(self, graph, target_graph, density_threshold=0.25, graph_clr=None,
# ((4, 2), (5, 1)): 60}, {}, ...]
self.DP_table = [{} for _ in range(len(self.dir_labelled_TD))]


def count_homomorphisms(self):
r"""
Return the number of homomorphisms from the graph `G` to the graph `H`.
Expand Down Expand Up @@ -121,7 +120,7 @@ def count_homomorphisms(self):
case 'join':
self._add_join_node(node)

Check warning on line 121 in src/sage/graphs/homomorphisms/count_homomorphisms.py

View check run for this annotation

Codecov / codecov/patch

src/sage/graphs/homomorphisms/count_homomorphisms.py#L121

Added line #L121 was not covered by tests

case _:
case _:
self._add_leaf_node(node)

return self.DP_table[0][0]
Expand Down

0 comments on commit 19d4ec4

Please sign in to comment.