How this calculation works
Find the smallest set of vertices whose closed neighborhoods cover a small undirected graph. The page returns a selected set and an explicit covering vertex for every graph vertex. It proves minimum size by completing smaller subset sizes first, keeping domination separate from distance-based identification or a general set-cover interface.
N[S]=V; minimize |S|.A worked example
In path 0–1–2, selecting vertex one covers itself and both neighbors. No empty set covers a nonempty graph, so the minimum dominating size is one.
Good to know
Simple undirected n≤16, exact closed-neighborhood subset enumeration. No connected, total or weighted domination.
Reference: Method reference: Minimum dominating set calculator from graph edges (opens in a new tab) ↗
Define closed-neighborhood coverage
A selected vertex covers itself and every vertex joined to it by an edge. A dominating set succeeds when every declared vertex is covered this way. Coverage does not extend through several edges merely because selected vertices belong to the same connected component; this is a one-step neighborhood condition.
The closed-neighborhood convention matters for isolated vertices. An isolated vertex must be selected because nothing else can cover it, but its own selection is sufficient. Total domination would require a neighbor even for selected vertices and would treat isolated vertices differently. That variant is not the rule implemented by this page.
The Zero forcing number calculator with forcing steps propagates a color only through the unique-uncolored-neighbor rule. Domination covers each selected vertex and its neighbors immediately, without a forcing sequence.
Represent the graph as simple and undirected
Declare vertices zero through n minus one and enter each edge once. Reversing an edge does not create a new relationship. Loops and duplicate edges are rejected, while an empty edge field is permitted for an edgeless graph. Every declared vertex still exists even if it appears in no row.
Optional edge weights do not change domination. The form minimizes the number of selected vertices, not installation cost, travel time or geometric coverage radius. If an application has unequal selection costs or coverage extending beyond graph adjacency, construct the appropriate model rather than interpreting an unweighted answer as that richer solution.
Verify the path example
For path zero–one–two, selecting vertex one covers all three vertices. An empty set covers none, so one is both achievable and minimal. Selecting both endpoints also dominates, but it is a larger solution and therefore does not meet the minimum objective.
For a four-vertex cycle, one selected vertex misses its opposite vertex, while two suitable vertices cover the graph. The answer rises to two even though every cycle vertex has the same degree. These examples show why local degree information alone is a useful intuition but not a universal formula for the optimum.
See how subset enumeration proves minimality
The solver tests candidate sets by increasing cardinality. For each set it combines the selected closed neighborhoods and compares the result with the complete vertex set. The first successful size is minimum because every smaller size has already been exhausted, not because the chosen set merely looks hard to improve.
This proof requires completing the bounded enumeration. With at most sixteen vertices, bit masks efficiently represent both subsets and coverage, but the number of possible subsets still grows exponentially. The stated vertex bound is an implementation choice, not a claim that larger domination problems lack mathematical solutions.
Inspect the coverage witness
The table assigns every vertex a selected vertex that covers it. For a selected vertex, that witness can be itself. Several selected vertices may cover the same vertex; returning one witness does not claim that the coverage is unique or that other covering relationships were absent.
A coverage witness proves feasibility but would not alone prove minimum size. The completed smaller-size search supplies that second part. When checking another program, compare cardinality and coverage validity before comparing the exact selected labels: multiple minimum dominating sets often exist and can be equally correct.
Distinguish nearby graph objectives
A resolving set uses distance signatures to distinguish vertices, while a dominating set ensures local coverage. A vertex cover touches every edge, while domination covers vertices through neighborhoods. Neither definition can be substituted for the other, even when a small example happens to give the same numeric answer.
Connected domination additionally requires the selected vertices to induce a connected subgraph. This calculator does not impose that condition and can select vertices across disconnected components. For a disconnected graph, each component must be dominated independently, but the selected vertices need not communicate through edges that do not exist.
Translate an application without adding hidden guarantees
Domination can represent a simple placement question when selecting one location covers itself and immediate neighbors. Real placement may also depend on capacity, reliability, distance decay or availability. A mathematically minimum set under adjacency alone can be unsuitable if a chosen vertex cannot actually serve all its neighbors.
Record what an edge means and why self-coverage is justified. The tool does not infer a graph from geographic points or guarantee robust coverage after a failure. Use its exact small-graph certificate for the stated discrete model and extend the model explicitly when operational requirements demand more.
A few questions, answered
Does a selected vertex cover itself?
Yes. This is closed-neighborhood domination, not total domination.
What happens to an isolated vertex?
It must be selected, because no other vertex can cover it.
Is a dominating set the same as a vertex cover?
No. Vertex cover touches every edge; domination covers every vertex through selected closed neighborhoods.
Why can another solver choose different vertices?
Several minimum sets can exist. Compare their size and coverage certificate rather than requiring identical labels.