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 May 23, 2024
1 parent 1a4c79d commit d3bff14
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)

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

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

0 comments on commit d3bff14

Please sign in to comment.