Advanced maths

Graph pebbling reachability calculator from an initial stone distribution

Determine whether two-for-one graph pebbling moves can deliver a stone to a chosen target.

Your numbers

One zero-based undirected edge per line; no loops or duplicate unordered pairs.

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

Determine whether two-for-one graph pebbling moves can deliver a stone to a chosen target. The answer includes a legal move sequence, making the irreversible resource loss visible.

THE FORMULAA move on edge u–v replaces c_u by c_u−2 and c_v by c_v+1 when c_u≥2. Search all reachable configurations for c_target≥1.

A worked example

On path0–1–2, start with four stones at0. Two moves0→1 produce two stones at1, then one move1→2 reaches the target. Starting with only three stones at0 cannot reach2 under these rules.

Good to know

Simple undirected graph≤8 vertices,total initial stones≤20;nonnegative integer counts. Breadth-first search capped at150000 distinct states. One-target reachability from the submitted configuration,no universal pebbling-number or probabilistic claim.

A pebbling move spends one stone permanently

Moving toward a neighbor requires two stones at the starting vertex. Both are removed, but only one arrives at the neighboring vertex. Thus each move reduces the total number of stones in the graph by one.

This is a combinatorial resource rule rather than ordinary transport along edges. Graph burning spreads activation, and graph paths merely describe connectivity; neither substitutes for checking whether enough stones can pay these repeated two-for-one costs.

Distance two consumes four starting stones0124 stones2 stones1 stone0→1 twice1→2 onceFour become one
Scroll across to see the full diagram.
On path0–1–2, start with four stones at0. Two moves0→1 produce two stones at1, then one move1→2 reaches the target. Starting with only three stones at0 cannot reach2 under these rules.

Compare this with the Graph burning number calculator with a burning sequence. Burning spreads activation without consuming two stones per move;its state transitions differ.

Supply a configuration and one target

Enter one nonnegative integer count per declared vertex, in zero-based vertex order. The target must be one of those vertices. A stone already on the target makes the configuration immediately successful without any moves.

The graph need not be connected. Stones trapped in another component cannot cross to the target, but they remain part of the initial total and state description. Negative counts, fractional stones and oversized totals are rejected.

Breadth-first search explores legal configurations

Every state is a vector of stone counts. From that vector, the algorithm tries every edge direction whose starting vertex has at least two stones, recording configurations not encountered previously.

Storing each state’s predecessor reconstructs a legal witness when a target stone is found. Breadth-first traversal also gives a shortest move sequence under these rules, although the central question is reachability rather than minimizing a weighted transport cost.

Distance two consumes four starting stones

In the default path, two identical moves0→1 each consume two stones at0 and create one at1. After both moves, the two stones at1 can pay for the final move toward2.

The final configuration has one target stone after three moves, so total stones fell from four to one. Three initial stones yield at most one intermediate stone with one left behind at0; no legal continuation can accumulate two at1.

The search is finite because resources decrease

A fixed finite number of vertices and an upper bound on total stones give a finite configuration space. The total decreases strictly on every move, so a sequence cannot cycle indefinitely while preserving its state.

Different move sequences can still reach the same configuration. Deduplicating those states avoids redundant work and does not discard a future opportunity, because all legal moves depend only on the current counts and the fixed graph.

Distinguish one configuration from a universal threshold

A graph’s pebbling number asks for a guarantee across every configuration of a specified total and every relevant target convention. This calculator instead takes one exact configuration and one exact target.

If the finite state cap is reached, the answer is unresolved rather than false. A completed unsuccessful search certifies only the submitted instance; it does not establish a universal minimum number of stones required on this graph.

Use witnesses to explain resource bottlenecks

Replaying the reported moves makes both adjacency and stone availability checkable. At each step, verify two stones were present at the departure vertex before subtracting them and adding one at the arrival vertex.

The rules intentionally ignore ordinary conservation because one stone disappears each move. Physical shipping, reversible transfers, random walks and simultaneous multi-target demands need different models. Do not read the pebbling witness as a plan under those alternative assumptions.

A few questions, answered

Does moving a stone conserve the total?

No. Two stones leave and one arrives, so every move loses one stone.

What if the target already has a stone?

The answer is immediately reachable with an empty move sequence.

Is this the graph pebbling number?

No. It tests one supplied configuration and one target.

Does a state cap mean unreachable?

No. A cap error means the exhaustive reachability search did not finish.

Find your calculator

Start typing to explore the library.