You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# It is recommended to read the [Independent set problem](@ref) tutorial first to know more about
5
+
# * how to optimize the tensor network contraction order,
6
+
# * what graph properties are available and how to select correct method to compute graph properties,
7
+
# * how to compute weighted graphs and handle open vertices.
8
+
9
+
# ## Problem definition
10
+
11
+
# In graph theory, a [dominating set](https://en.wikipedia.org/wiki/Dominating_set) for a graph ``G = (V, E)`` is a subset ``D`` of ``V`` such that every vertex not in ``D`` is adjacent to at least one member of ``D``.
12
+
# The domination number ``\gamma(G)`` is the number of vertices in a smallest dominating set for ``G``.
13
+
# The decision version of finding the minimum dominating set is an NP-complete.
14
+
# In the following, we are going to solve the dominating set problem on the Petersen graph.
15
+
16
+
using GraphTensorNetworks, Graphs, Compose
17
+
18
+
graph = Graphs.smallgraph(:petersen)
19
+
20
+
# We can visualize this graph using the following function
0 commit comments