Skip to content

Commit

Permalink
count_homomorphisms.py: Remove unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
guojing0 committed Jun 5, 2024
1 parent 0cda9d6 commit a9f4ddd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/sage/graphs/homomorphisms/count_homomorphisms.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
from sage.graphs.graph import Graph

from sage.graphs.homomorphisms.helper_functions import *

# In integer rep, the DP table is of the following form:
# { node_index: [1, 2, 3, 4, 5],
# second_node_index: [10, 20, 30, 40, 50], ...}

class GraphHomomorphismCounter:
def __init__(self, graph, target_graph, density_threshold=0.25, graph_clr=None, target_clr=None, colourful=False):
Expand Down Expand Up @@ -268,7 +263,6 @@ def node_changes(labelled_TD):
EXAMPLES::
sage: from sage.graphs.graph_decompositions.tree_decomposition import label_nice_tree_decomposition
sage: from sage.graphs.homomorphisms.helper_functions import node_changes
sage: bip_one_four = graphs.CompleteBipartiteGraph(1, 4)
sage: nice_tree_decomp = bip_one_four.treewidth(certificate=True, nice=True)
sage: root = sorted(nice_tree_decomp)[0]
Expand Down

0 comments on commit a9f4ddd

Please sign in to comment.