A map of adjacency

How many borders away is the world?

Romania is three land borders from China: Romania → Ukraine → Russia → China. The number discards distance, roads and whether a crossing is actually possible; it keeps only adjacency between states.

Minimum political distance
3
borders between Romania and China

A border counts as one step whether it follows a narrow isthmus or runs for thousands of kilometres.

Choose the countries and recalculate the route

Remove one country and the planet folds differently.

Choose two endpoints, then remove states you do not want the route to use. The map finds the chain with the fewest borders and tells you how many equally short alternatives exist.

3
borders

Tap a country to make it the destination. The map is schematic; lines between country centres show the relationship in the graph.

The second surprise

The United States is six borders from Romania.

That sentence is true in the graph of states and impossible as an unbroken overland itinerary. The gap reveals exactly what a political map compresses.

6

Romania → United States

There are two shortest routes: through Ukraine and Poland or through Hungary and Austria. Both continue through Germany, Denmark and Canada.

RO → (UA → PL | HU → AT) → DE → DK → CA → US

Denmark and Canada became land neighbours when they divided Tartupaluk, also known as Hans Island. The graph then collapses every territory of one state into a single point: it moves you, at no cost, from European Denmark to Greenland.

The same effect makes France a neighbour of Brazil and Suriname through French Guiana. The border count stays correct while lived geography disappears between the nodes.

Anatomy of the network

A planet reduced to nodes and edges.

These figures describe the network after the seven borders through detached territories are included.

198
states and territories shown separately
193 UN members, Palestine and Vatican City, plus Kosovo, Taiwan and Western Sahara.
324
pairs of land neighbours
Each border counts once, regardless of its length.
39
nodes with no land border
Japan, Australia, Iceland and other island states begin in isolation.
18
borders in the longest shortest route
This is the maximum width of the largest connected component.

How to read it

The number answers one very precise question.

What one step means

Two nodes are connected when the states or territories share an international land boundary anywhere. The shortest route is the chain that crosses the fewest such borders.

What the measure leaves out

Road distance, seas between territories of one state, crossing points, visas, controls, conflict and travel safety do not alter the result. Bridges and tunnels over a maritime boundary do not create a land border.

Fragmented territories

A state remains one node even when its territory is split between continents or islands. The checkbox can remove seven conspicuous borders created by such territories; it does not turn the graph into a continuous-route planner.

Contested status

Kosovo, Taiwan, Palestine and Western Sahara are shown separately so their adjacencies can be explored. Their appearance expresses no position on recognition or sovereignty, and disputed boundaries require the method note to be read.

Sources

The map uses simplified shapes at world scale. Its convention for de facto borders follows Natural Earth. Country names and neighbour relations were checked against the open World Countries list (mledoze) and the REST Countries documentation, with unusual territorial cases checked against official sources.

Neighbour relations contain information from World Countries, made available under the Open Database License (ODbL).

What follows from the definition

Under this representation, Romania–China has three edges; without Russia it has five; without Russia and Iran no path remains; Romania–United States has six when borders through detached territories are included.