diff --git a/src/sage/graphs/homomorphisms/count_homomorphisms.py b/src/sage/graphs/homomorphisms/count_homomorphisms.py index 24737cc3235..97523fc22b7 100644 --- a/src/sage/graphs/homomorphisms/count_homomorphisms.py +++ b/src/sage/graphs/homomorphisms/count_homomorphisms.py @@ -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`. @@ -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]