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.
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.
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.
Romania → United States
There are two shortest routes: through Ukraine and Poland or through Hungary and Austria. Both continue through Germany, Denmark and Canada.
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.
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.
- Natural Earth, Admin 0 Countries
- World Countries, mledoze
- REST Countries: geography and border fields
- Global Affairs Canada: Tartupaluk/Hans Island
- France Diplomatie: the Brazil border
- France Diplomatie: the Suriname border
- Spanish Foreign Ministry: Ceuta and Melilla
- UK Government: the Gibraltar–Spain land border
- UK Government: Sovereign Base Areas in Cyprus
- Netherlands Government: Saint-Martin/Sint Maarten border agreement
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.
Border situation: 19 August 2026. Conceived by Marius Comper.