Advanced maths

Domatic partition calculator with disjoint dominating sets

Partition every vertex into as many disjoint dominating groups as possible.

Your numbers

Vertices are labeled consecutively from 1 through this number, including isolates.
One u,v row per edge; unordered pairs must be unique.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Partition every vertex into as many disjoint dominating groups as possible. Every group must reach all vertices through membership or a neighboring vertex. The returned partition demonstrates coverage for each group, while a complete subset search certifies that a larger number of groups is impossible within the supported graph size.

THE FORMULAd(G)=max{|P|: P partitions V and N[S]=V for every S∈P}; f(R)=max_{S⊆R, min(R)∈S, N[S]=V} [1+f(R\S)].

A worked example

C4: {1,4} and {2,3} form two dominating groups. No singleton dominates, excluding any three-group partition of four vertices; domatic number 2.

Good to know

Simple undirected graph, n=1–10, exact closed-neighborhood subset partition DP. One optimum partition, no count of partitions; no total/connected/weighted domination.

Dominating with a closed neighborhood

A set dominates the graph when every vertex is either inside that set or adjacent to a member. The closed neighborhood includes the vertex itself, which allows a selected vertex to cover its own location without needing another selected neighbor.

A domatic partition divides all vertices into disjoint dominating sets. It maximizes the number of complete coverage groups rather than minimizing the size of one group, so a minimum dominating-set result alone does not solve this problem.

Domatic partition calculator with disjoint dominating sets worked exampleTwo disjoint coverage groups1234{1,4} and {2,3} each dominate the square
C4: {1,4} and {2,3} form two dominating groups. No singleton dominates, excluding any three-group partition of four vertices; domatic number 2.

Compare this with the Minimum dominating set calculator from graph edges. A smallest single dominating set does not solve a partition into many dominating sets.

Why disjoint coverage can matter

A partition can model separate teams or service rounds, each with neighborhood coverage of the whole graph and without reusing a vertex across groups. The edge model must justify the assumption that a single neighboring vertex provides adequate coverage.

Membership has no geographic distance or capacity beyond the input graph. A dominating set may contain adjacent vertices and need not form a connected subgraph, so the result does not automatically establish communication within each team.

The subset partition recurrence

The algorithm first marks every vertex subset that dominates the entire original graph. A recursive state then asks for the largest number of marked subsets that partition the remaining vertices, always selecting a subset containing the smallest remaining vertex.

This anchoring avoids permutations of the same groups without discarding any partition. A crucial detail is that domination is always checked against the original full graph, not merely against whichever vertices remain during recursion.

Checking a four-cycle partition

In the default cycle 1–2–3–4–1, the sets {1,4} and {2,3} each dominate all four vertices. They are disjoint and cover every vertex, giving a feasible domatic partition with two groups.

No singleton dominates this cycle because it misses the opposite vertex. Three nonempty groups among four vertices would require at least one singleton, so a three-group partition is impossible and the domatic number is exactly two.

Useful bounds and obstructions

The domatic number is at most minimum degree plus one. For any vertex, every dominating group must contain a member of its closed neighborhood, and the groups are disjoint, so that neighborhood must have enough distinct representatives.

An isolated vertex has a one-vertex closed neighborhood and forces the whole graph's domatic number to one. A complete graph on n vertices reaches n because every singleton dominates; these extremes are useful sanity checks on an implementation.

Preparing the graph and reading groups

Declare one through ten vertices and unique simple undirected edges. Vertices absent from the edge list remain present. Self-loops and duplicate pairs are rejected; the closed-neighborhood convention already accounts for a vertex covering itself.

Group numbers only identify parts of the returned partition. They do not represent ordinary proper colors: adjacent vertices may share a group, and requiring every group to be independent would impose an additional constraint not used here.

Exactness and remaining modeling limits

All dominating subsets and all relevant residual partition states are examined under the small graph cap. A feasible grouping without this complete optimization would give only a lower bound on the maximum number of groups.

The page supplies one optimum partition rather than the number of optimum partitions. It does not solve total domination, where even selected vertices need neighbors in their own set, or connected domination, weighted staffing or fault-tolerance requirements.

A few questions, answered

Can adjacent vertices share a group?

Yes. Domatic groups must dominate, but they need not be independent sets.

What does an isolated vertex imply?

It forces the domatic number to one because every dominating group would need that same vertex.

Is this the same as a minimum dominating set?

No. It maximizes the number of disjoint dominating groups partitioning all vertices.

Does the calculator use total domination?

No. A selected vertex covers itself under the closed-neighborhood convention.

Find your calculator

Start typing to explore the library.