How this calculation works
Find the minimum initial blue vertex set that turns the whole graph blue under the standard zero-forcing rule, and return a sequential forcing certificate.
A blue vertex with exactly one white neighbor forces that neighbor blue. Z(G)=min{|B|: closure(B)=V}.A worked example
On the default five-vertex path, begin with vertex 0 blue. The forces 0→1, 1→2, 2→3 and 3→4 color everything, so Z(G)=1.
Good to know
1–16 vertices, simple undirected edges; a bounded exact search over initial subsets. Standard zero forcing, not power domination or positive-semidefinite forcing.
Reference: AIM work group: Zero forcing sets and minimum rank (opens in a new tab) ↗
A local rule with a global objective
Start by coloring an initial vertex set blue and leaving the other vertices white. A blue vertex can force a neighbor blue only when it has exactly one white neighbor. Repeat legal forces until none remain. The zero-forcing number is the smallest initial blue set whose closure contains every vertex.
The word exactly is crucial. A blue vertex with two white neighbors cannot choose one arbitrarily, even when one looks easier to reach. A blue vertex with no white neighbors has nothing left to force. The optimization concerns the number of initial blue vertices, rather than the number of forcing steps or their elapsed time.
Compare this with the Graph burning number calculator with a burning sequence. Minimize the initial blue set under the unique-white-neighbor forcing rule; graph burning adds new sources over time and uses a different spread rule.
Representing the graph and isolated vertices
Enter the total vertex count and a simple undirected edge list using zero-based labels. Declaring the count separately preserves isolated vertices. A loop, repeated unordered pair or out-of-range index is rejected, since the calculation assumes the ordinary simple-graph version of the color-change rule throughout its search.
An isolated vertex cannot be reached by a neighbor's force and must therefore start blue. Leaving it out of the vertex count changes the answer. Edge weights and directions are not used: if your source network has either, first decide whether its underlying unweighted undirected graph represents the forcing process you intend to study.
Following the default path certificate
The example is the path zero–one–two–three–four. With only endpoint zero initially blue, zero has one white neighbor and forces one. Vertex one then has only vertex two white among its neighbors, so it forces two. The same condition successively allows two to force three and three to force four.
Four legal forces color all five vertices from a single initial source. No empty initial set can start a force in a nonempty graph, so one is also a lower bound. Combining that lower bound with the explicit endpoint witness proves that the default path's zero-forcing number is exactly one.
Searching for the minimum source set
The calculator examines initial subsets in increasing cardinality, starting with the empty set. For each candidate it repeatedly applies available legal forces until reaching closure. The first successful cardinality is minimum because every smaller candidate has already been tested unsuccessfully under the same standard forcing rule.
Within a closure computation the implementation records one sequential order of valid forces. A newly blue vertex may become eligible later in that same pass. This produces a certificate of eventual coverage; it is not a simulation of synchronized time rounds and does not optimize parallel propagation time among tied minimum starting sets.
Checking every force in the witness
Begin with precisely the returned initial-blue list. For each recorded from→to step, verify that the source is already blue and the destination is white. Then count the source's current white neighbors. The destination must be its only white neighbor at that moment, considering all original incident edges.
After applying all steps, every input vertex should be blue. The number of forces consequently equals the vertex count minus the number initially blue, because each force colors one previously white vertex. Several valid forcing orders or minimum initial sets may exist; the displayed sequence is one certificate rather than an exhaustive catalog.
Related processes that give different answers
Power domination initially colors neighbors of chosen sources before starting its propagation rule. Standard zero forcing does not include that extra observation step. Positive-semidefinite zero forcing also changes which white neighborhoods are considered. Their minimum source counts can differ, so examples from those variants should not be compared without matching definitions.
Zero forcing is studied in connection with matrix maximum nullity and minimum rank, but this calculator does not construct a matrix or compute its rank. It returns a graph parameter and witness. Applying any matrix bound requires the appropriate theorem and field assumptions; the output is not itself a universal equality for matrix rank.
Bounds, resource status and reference graphs
The sixteen-vertex limit and search cap keep exact subset enumeration finite. A cap error provides no certified minimum, even if some candidate behavior was inspected internally. Completed results concern the submitted finite graph only. Connectedness is not required, and each disconnected component must be successfully forced from sources inside that component.
For reference, a nonempty edgeless graph needs every vertex initially blue. A complete graph on n vertices needs n−1 initially blue because two remaining white vertices block every blue source. A path needs one endpoint. These different cases are useful for checking the rule rather than assuming that adding more edges always helps propagation.
A few questions, answered
Can a blue vertex choose between two white neighbors?
No. It can force only when exactly one of its neighbors is white.
Does the displayed order minimize propagation time?
No. It certifies coverage sequentially; the objective minimizes only initial blue vertices.
Must isolated vertices start blue?
Yes. No other vertex can force an isolated vertex.
Is this power domination?
No. Standard zero forcing does not initially color all neighbors of each chosen source.