Project 2.04

International economy as a network

Follow the trade ties between countries. See who depends on a few suppliers, and where a disruption could travel next.

When a supplier disappears

A small economy can be a major supplier of something the world needs. Having many trading partners may help, but the number of connections alone cannot tell us how easily a country could replace a lost supply.

The Connection and prosperity plate lets you explore these ties on a world map. A node is a country or territory; a link connects two trading partners. Its weight is how much they trade. Start with wheat, then compare all goods to see how the picture changes.

The map uses 2021, before Russia’s full-scale invasion of Ukraine. FAO’s account of the agricultural disruption gives the historical context. The export-stop example asks a narrower question: which recorded imports depended on a supplier, and what could happen if its customers also cut exports?

What the trade records show

Ukraine supplied 9.8% of recorded world wheat exports in 2021: 21.45 million tonnes. It ranked fifth by exported tonnage. That role is specific to wheat: its share of all merchandise exports was 0.3%. An economy can matter greatly to a particular market without dominating world trade.

Among importers receiving at least 100,000 tonnes from Ukraine, the largest Ukrainian shares of recorded wheat imports were Djibouti (59.4%), Pakistan (59.0%), Lebanon (56.4%). This reporting threshold makes the examples easier to interpret; it is never a filter on the analysis or the interactive map. A large percentage can otherwise describe a very small shipment: Moldova’s 63.2% refers to about 1,422 tonnes imported from Ukraine.

Try the Ukraine wheat export stop. The first step exposes 21.45 million tonnes of recorded imports directly. Under the stated second-step pass-through assumption, another 0.91 million tonnes of recorded flows are exposed. That extra figure counts affected trade links, not additional unique grain or an estimated food shortage.

Largest recorded wheat exporters, 2021. “Outside community” is the share of an exporter’s tonnes going to another fitted group. It describes a bridge between groups; it is not a measure of irreplaceability.
ExporterWorld export shareOutside communityGDP · current US$
Russia14.1%76.1%$1.83T
Australia12.3%97.8%$1.56T
Canada11.9%76.6%$2.02T
United States10.7%74.5%$23.73T
Ukraine9.8%70.3%$199.77B
France7.4%25.1%$2.97T
Argentina4.6%45.3%$486.56B
Germany3.4%14.8%$4.36T
Romania3.3%48.4%$285.07B
India2.7%27.8%$3.17T

The weighted, directed wheat network gives 31 communities. Ukraine belongs to Black Sea & partners, a 15-economy group including Russia, Egypt, Romania, Pakistan. 42.6% of this group’s incident trade weight stays inside. The name describes its geographic core, not a political alliance or a boundary containing every member.

For all merchandise, the same method selects one group. We keep that result: a broad basket can hide commodity-specific dependencies. Inferring the number of groups does not guarantee several groups, or make clustering assumption-free.

Why is China’s wheat community small?

China has 40 wheat partners with reported tonnage, but its fitted community, China & partners, contains 7 economies. In 2021 it imported 12.14 million tonnes and exported about 4,530 tonnes. 100% of those imports came from outside its fitted community. The small group does not mean China has few partners or little influence.

Infomap groups an imaginary walk through the trade network. At each country, export amounts become proportions of that country’s total exports. A small export stream can therefore steer the walk after it reaches a large importer. The walk does not model how much imported grain is consumed, stored or exported again. This assumption matters particularly for China’s very uneven imports and exports.

China’s group contains 7–34 economies across the 20 saved searches, and 7–34 after small changes to trade weights. This is an uncertain model boundary, not a stable economic bloc. Its individual network shows every recorded partner, inside and outside the group. For all merchandise, the fit puts all economies in one community.

Does economic size explain trade importance?

GDP—gross domestic product—is annual economic output. Here it is total nominal GDP, measured at 2021 prices and exchange rates, not household income or output per person. The World Bank provides matching observations for 201 of 226 economies. Missing values remain unavailable.

Spearman’s rank correlation compares the ordering of two quantities: +1 means the same ordering, −1 the reverse. For GDP and recorded exports it is 0.951 across 201 merchandise exporters with GDP, and 0.482 across 135 wheat exporters with GDP. These cohorts differ. Large economies generally export more, but GDP alone does not identify commodity-specific suppliers. None of these comparisons estimates the GDP effect of removing a country, and GDP never enters the community fitting or disruption rule.

How stable are the neighborhoods?

We retain the shortest description from 20 independently seeded Infomap fits. The adjusted Rand index measures agreement between partitions after accounting for chance; 1 means identical membership. For wheat, agreement with the selected fit spans 0.534–1.000 across starts. After ten independent perturbations of each directed flow’s weight by up to 10%, agreement spans 0.595–0.981. Each perturbed fit uses three starts. These are sensitivity checks, not confidence intervals. The all-merchandise one-group result persists in these checks.

Ukraine’s wheat customers with at least 100,000 recorded tonnes supplied in 2021, ordered by Ukrainian share of their recorded imports. All other observations remain in the downloadable data and map.
ImporterUkrainian shareTonnes from UkraineGDP · current US$
Djibouti59.4%193,750$3.39B
Pakistan59.0%2,184,347$348.52B
Lebanon56.4%671,207$23.13B
Ethiopia50.6%1,194,048$109.07B
Libya37.7%477,744$35.22B
Mauritania34.2%226,445$9.22B
Tunisia33.9%619,627$47.07B
Egypt28.7%3,401,372$424.67B

Where the connections come from

BACI, a database maintained by the research centre CEPII, brings together importer and exporter reports to UN Comtrade. It reconciles their differences. The records cover goods moved by any transport mode; the lines on the map are trading relationships, not shipping routes.

All 226 reporting economies are kept. The wheat view combines wheat and meslin, a wheat–rye mixture, in tonnes. The all-goods view combines trade values in US dollars. Keeping these views separate avoids treating unlike products as interchangeable.

Each record has a direction, from exporter to importer. Each observed direction has its own arrowed line: exporter → importer. Opposite directions bend to different sides. Line thickness, country tables and the export-stop scenario all preserve the separate amounts.

Missing observations stay missing. Of 3,983 wheat product–partner records, 38 have no quantity, although they report about $20.55 million in value. The map therefore shows recorded wheat flows, not a complete physical balance.

Why countries share a color

A community is a group inferred from trade paths, not a list of all a country’s partners. Infomap, the grouping method, follows an imaginary traveller along the export arrows, choosing outgoing links in proportion to their trade amounts. Both incoming and outgoing flows shape where this traveller spends time. The groups describe places the traveller tends to stay within. The method chooses how many groups to use; it does not need a number from the viewer.

Each community has its own name, based on a geographic core or prominent members. These names help us read the map; they do not define the groups or imply that every member lies in that region. Within-community connections link members of one group. Between-community connections link different groups and show where trade crosses these neighborhoods. To judge dependence, look at the partner’s share of a country’s imports, not just whether the line crosses a group boundary.

The walk treats each country’s outgoing trade as proportions, so it does not preserve a physical balance between imports and exports. It cannot tell whether an import is consumed at home or traded onward. This still involves choices: the year, the product, and how the imaginary movement is modelled. Country locations and GDP do not influence the groups. The wheat network has several communities; all goods together produce one. A single group is a result worth keeping.

Trying an export stop

Choose a supplier, or try Ukraine’s wheat exports. The first step stops that supplier’s exports. Exposure is the share of a customer’s recorded imports that came from it.

The second step assumes each affected customer cuts its own exports by the same fraction as its lost imports. The original supplier stays stopped. Direct losses are counted once, and the calculation stops after this one further step. Restore observed trade to undo the scenario.

Countries can draw on stocks, grow more, switch suppliers or change prices. Those responses are absent here. The example shows dependence under stated assumptions; it does not estimate food shortages, war damage or GDP loss.

A few ways to matter

A large exporter supplies much of a market. A bridge trades across communities. A dependent importer gets much of its supply from one partner. Each tells a different story, so there is no single importance score.

GDP—gross domestic product, the value of annual economic output—provides a separate comparison. It sizes the flags, but never determines the communities or the export-stop calculation. A large economy is not necessarily an irreplaceable supplier of wheat.

Data and method details

The source is BACI HS17 V202601: the 2017 product classification, release V202601. Positive directed flows comprise 31,608 exporter–importer pairs for all goods and 2,264 for wheat. Missing quantities are not estimated. The archived 2023 extraction has larger gaps and is not used to infer a change in wheat volume.

Communities use weighted, directed Infomap 2.16.0: every exporter-to-importer flow separately, Markov time 1 (one link step at a time), and the finest groups in its hierarchy. We keep the shortest description from 20 independently seeded searches. The walk uses 15% unrecorded teleportation to links: occasional restarts follow outgoing trade weights, but only real-link steps count in the grouping objective. This prevents trapping; it does not add trade flows. Ten sets of independent directed-flow weight changes of up to ±10% check sensitivity. These checks do not account for systematic missing reports or make the grouping assumption-free.

The World Bank supplies total nominal 2021 GDP in current US dollars, series NY.GDP.MKTP.CD, from the frozen revision dated 11 November 2026. It matches 201 economies; the other 25 remain unavailable.

Modularity evaluates a whole division into groups; it is not a country’s resilience score. This project uses Infomap rather than modularity. A country–product network would answer a different question about similar export baskets; the buyer–seller directions are retained here to study dependence.

BACI is distributed under the Etalab Open Licence 2.0. Credit: Gaulier and Zignago (2010), BACI: International Trade Database at the Product-Level, CEPII Working Paper 2010-23. Reproduction scripts and original-file checksums are retained in the repository. The browser uses saved groups; it does not run the grouping algorithm.

Source manifest · Frozen GDP response · Country crosswalk · Bilateral CSV · Network and memberships · Fitted groups and checks.

Plates from this project

Plate 1.022026

World regions colored by communities inferred from recorded wheat trade in 2021.World regions colored by communities inferred from recorded wheat trade in 2021.

Connection and prosperity

From project 2.04 · International economy as a network

Do more trading partners make a country more resilient?