How this calculation works
Find the smallest effective divisor that can send a chip to every vertex by integer chip firing, with exact equivalence witnesses.
gon(G) = min{deg D : D ≥ 0 and D − v is equivalent to an effective divisor for every v}.A worked example
On the three-cycle, a single chip cannot reach every vertex by equivalence. Two chips at vertex 0 can move to vertices 1 and 2 by firing vertex 0 once: (2,0,0)−(2,−1,−1)=(0,1,1). Thus divisorial gonality is 2.
Good to know
Connected simple undirected graphs with 2–6 vertices. Effective-divisor enumeration and exact reduced-Laplacian equivalence tests are bounded to the displayed small graph domain; unsupported computation is rejected. Integer chip-firing equivalence, positive Baker–Norine rank only. Divisorial gonality is not stable gonality or a fixed-sink sandpile stabilization.
Reference: Primary method or official documentation (opens in a new tab) ↗
A divisor that reaches every vertex
A divisor assigns an integer number of chips to each graph vertex. An effective divisor has no negative entries. Its degree is the sum of all entries, so chip positions matter even when two divisors have the same degree. The question here is whether one divisor can be rearranged sufficiently to make a chip available at any requested vertex.
Positive rank means that, for every vertex v, subtracting one chip at v leaves a divisor equivalent to an effective one. Each requested vertex may use a different firing sequence. The definition does not demand one simultaneous configuration with a chip on every vertex, which would be a much stronger and usually unhelpful requirement.
Compare this with the Abelian sandpile stabilization and critical group calculator. Minimize divisor degree needed for positive Baker–Norine rank across every vertex, rather than stabilize one chip configuration at a fixed sink.
Enter the underlying graph
Use distinct integer vertex labels from zero through n−1 and one endpoint pair per undirected edge. Loops, repeated edges and disconnected inputs fall outside this page. Every declared vertex participates, including one that accidentally has no incident edge, so an omitted edge can change both connectivity and the answer.
The graph represents a finite combinatorial graph, without edge lengths. Subdividing edges changes the supplied graph and should be done deliberately. This calculator does not optimize over subdivisions, attach trees, or replace the graph by a metric graph. Those constructions occur in related notions of gonality and are not automatic preprocessing steps here.
Chip firing and exact equivalence
Firing vertex i removes its degree in chips at i and sends one chip along each incident edge. The graph Laplacian records that change. Two divisors are equivalent when their difference is an integer Laplacian combination. For equivalence testing, negative intermediate counts can occur; this is different from insisting that every individual firing is physically legal.
Fix vertex zero and invert the reduced Laplacian exactly over the rationals. Two divisors of equal degree are equivalent precisely when applying that inverse to their off-root difference gives integer firing counts. Fractional coordinate signatures group the possible effective remainders, while returned integer firing vectors can be replayed against the full Laplacian.
Why the degree search is complete
The search examines effective divisors in increasing degree and tests the positive-rank condition against every target vertex. Once all lower degrees have been ruled out and one degree succeeds, its first successful divisor establishes the minimum. Symmetric divisors may yield several equally good answers; the chosen witness need not be unique.
At degree d, enumerate effective remainders of degree d−1 and compare their exact equivalence signatures with D−v for every target. Connected simple graphs with at least two vertices have the finite upper bound n−1, which bounds the complete search here. An interrupted search could not return its best divisor as a certified minimum.
Trace the triangle example
The triangle has Laplacian rows (2,−1,−1), (−1,2,−1) and (−1,−1,2). With D=(2,0,0), the original divisor already supplies a chip at vertex 0. Firing vertex 0 changes D to (0,1,1), supplying a chip at either of the other two requested targets. The degree remains two throughout.
Degree one fails because distinct single-vertex chips on a cycle need not be equivalent. Checking only the total degree would therefore miss the obstruction. Together, exhaustive failure at degree one and the displayed degree-two witness establish gonality two for this input. The figure shows alternative target witnesses rather than a simultaneous distribution requirement.
Recognize useful comparison families
Every tree has divisorial gonality one: its unique paths allow a single chip class to reach every vertex. A simple cycle has gonality two. Complete graphs on n vertices have gonality n−1. These families test different aspects of the implementation, especially the distinction between degree bounds and actual equivalence.
The graph’s minimum degree, edge connectivity or chromatic number should not be substituted for gonality. Some such quantities provide bounds in particular settings, but none is the definition used here. Use a separately justified bound only as a check; the calculator’s result comes from divisor effectiveness tests and a completed lower-degree search.
Read and verify the certificate
Inspect the minimizing divisor, its degree and the target-by-target equivalence witnesses. For each target, verify that the resulting divisor is effective and has at least one chip at that vertex. Check that its difference from the original divisor equals the reported integer Laplacian combination and that total degree is conserved.
This certificate proves positive rank for the selected divisor; minimality additionally depends on the completed search below that degree. It does not compute the full rank function of every divisor or a harmonic map to a tree. If the resource cap is reached, retain the entered graph and use a dedicated algebra package rather than interpreting the interruption as nonexistence.
A few questions, answered
Does a negative intermediate chip count invalidate equivalence?
No. Divisor equivalence permits integer Laplacian combinations. It is not the same as a sequence constrained to legal nonnegative sandpile firings.
Must every vertex receive a chip at once?
No. Each target vertex may use its own equivalent effective configuration.
Is this stable gonality?
No. This page computes divisorial gonality of exactly the entered finite graph.
Can a work-cap result prove a minimum?
No. Unfinished lower-degree rejection is reported as unresolved.