Plate 1.02

Connection and prosperity

Do more trading partners make a country more resilient?

Colors mark trade communities: neighborhoods inferred from trade paths, using both direction and amount. Each economy with recorded trade belongs to one group. Names such as Southern Africa and China & partners describe a geographic core or a prominent member; other members can lie farther afield. These are reading aids, not official trade blocs.

Within a community, connections show trade among its members. Between communities, they show trade reaching another group. These ties can carry a disruption across groups, but a line alone does not tell us how dependent a country is. Look at the share of its imports supplied by that partner. Its most important supplier may be outside its community.

Hover land to preview; click land for internal community connections or a flag for all that country’s partners, including those outside. Touch: select, then See network. Double-click or double-tap to label communities; repeat to hide their names. Shading separates partners within and outside the selected country’s community. Arrows point from exporter to importer; thicker lines mean more trade in that direction. Larger flags mean greater GDP, annual economic output; sizes are compressed to keep small economies visible. Missing GDP uses the smallest flag.

Start with wheat and meslin, a wheat–rye mixture, in tonnes, or switch to all goods in US dollars. Try the Ukraine export stop to see which imports depend on one supplier. Exposure means the share of recorded imports affected. The second step assumes customers also cut exports. It is a what-if using 2021 trade, not an estimate of food shortages or GDP loss.

Project 2.04 · International economy as a network

Why this plate

Does having more trading partners make a country more resilient? It depends on who supplies what. This map lets you explore that dependence through recorded trade in 2021, before Russia’s full-scale invasion of Ukraine. Colors mark communities—groups inferred from trade paths. Trade within a community links its members; trade between communities connects these neighborhoods. The names describe a geographic core or prominent member, not official blocs. Inspect a region to see exporter-to-importer arrows, then try stopping Ukraine’s wheat exports. The first step shows which recorded imports came from that supplier. A second step assumes affected customers also cut their exports. That assumption helps explore how a disruption could spread; it does not predict shortages or war damage. Larger flags mean greater GDP, the value of a country’s annual economic output. GDP provides context, not a measure of resilience.

Stick to the tree, yearn for spring.

How it’s made

From trade reports to a map

Connection and prosperity maps trade recorded in 2021, before Russia’s full-scale invasion of Ukraine. An economy means a country or territory reported separately. A line connects two trading partners; it is not a transport route.

The source is BACI, CEPII’s database combining importer and exporter reports to UN Comtrade. It reconciles differences between reports, including freight and insurance costs. That improves consistency, but gaps remain. All 226 reporting economies are kept.

Wheat & meslin combines recorded tonnes of wheat and a wheat–rye mixture. All merchandise combines the value of all goods in current US dollars. These units stay separate. A missing report is not treated as a measured zero.

Reading the picture

A community is a group inferred from trade paths, not a list of all a country’s partners. Colors identify communities. Infomap, the grouping method, follows an imaginary traveller along exporter-to-importer arrows, choosing outgoing connections in proportion to their trade amounts. Incoming trade determines how the traveller arrives; outgoing trade determines where they go next. It looks for groups that make this movement easier to describe. It chooses the number of groups automatically, but the year, product and way of representing trade are still assumptions.

Each community has a distinct name, chosen from its geographic core or prominent members after fitting the groups. Names do not determine membership, and a group may include economies elsewhere. Within-community links connect members of the same group; between-community links connect different groups. Neither kind alone measures dependence: check how much of an importer’s supply comes from the partner.

Inspect a region to see its community’s links. On desktop, click a flag to open that economy’s individual network, or click the map region around it for the whole community. On a phone or tablet, tap to select, then use See network. Double-click or double-tap to show community names on the drawing; repeat to hide them. With the drawing focused, press N for the same action. The network uses saved positions to show connections, not geographic locations or another grouping method. Back to map restores the geographic view. The export-stop note identifies a scenario: its arrows show surviving trade, while the import/export totals in the inspection note still describe observed 2021 trade. Stopping Ukraine’s wheat exports therefore leaves its much smaller incoming flows; it does not reverse the arrows.

The layouts are prepared ahead of time with a force simulation: stronger trade ties pull partners together, while repulsion and spacing keep flags apart. In an individual view, the finished layout separates partners within the selected economy’s community from those outside it. Shaded areas mark those two memberships; they contain the partners shown, not every member of the wider community. A final spacing force moves unrelated flags away from connection lines. Positions stay fixed when you open the view or change the export-stop step. Countries with no surviving connection become faint and sit beneath the remaining lines; you can still inspect them. This changes only the drawing; it does not recalculate communities, trade or GDP.

Zooming out keeps the selection and its note. Reset view clears both. Drag sideways to circle the world. Ctrl/Cmd + wheel zooms; two fingers pinch and pan. One finger scrolls the page.

The underlying records are directed: each goes from an exporter to an importer. Country tables and the export-stop scenario retain these directions. Each observed direction has its own curved line and arrowhead. Opposite directions bend to different sides, so unequal exports and imports remain visible.

Line thickness follows the trade amount in that direction on a logarithmic scale, which compresses large differences. No links are filtered out of an inspected community. Flag size follows GDP, gross domestic product: the value of annual economic output. Sizes are compressed and remain readable when zoomed in. Flag area is not proportional to GDP. Missing GDP uses the smallest marker. GDP and geography do not determine the communities.

For the grouping calculation, the traveller restarts 15% of the time so it cannot become trapped. Restart locations follow outgoing trade weights. These restarts are excluded from the recorded movement used to form groups; they are not invented shipments. This is directed Infomap’s standard unrecorded link-teleportation model, a modelling choice rather than an assumption-free description of trade.

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.

Trying a disruption

The first step stops a selected supplier’s exports. Exposure is the share of each customer’s recorded imports that came from that supplier. If no imports are recorded, the share is unavailable.

The second step assumes affected customers reduce their own exports by the same fraction as their lost imports. The original supplier stays fully stopped. Direct exposure is counted once, and there is only one further step. Restore observed trade undoes the scenario. Colors and GDP sizes keep their original meaning throughout.

This is a what-if, not a forecast. It excludes domestic production, stocks, replacement suppliers, prices and policy responses. An import share is not a consumption share. The result does not measure hunger, war damage or GDP loss.

Calculation and data checks

The trade release is BACI HS17 V202601. HS17 is the 2017 product classification. Values are reported in thousands of US dollars and multiplied by 1,000; wheat keeps codes beginning 1001 and uses reported tonnes. The source contains 3,983 wheat product–partner records, of which 38 lack quantity, with about $20.55 million in value. No tonnes are invented for those records. Archived 2023 data have larger quantity gaps and are not used for this comparison.

For communities, every exporter-to-importer direction keeps its own weight. Directed Infomap 2.16.0 uses Markov time 1—one link step at a time—and the finest groups in its hierarchy, with the restart rule explained above. We keep the shortest description from 20 fixed independent starts. One group is allowed. GDP, distance and nationality are not inputs. Downloadable group numbers are ordered by size, not importance; the map uses descriptive names for those same memberships.

Ten sets of weight changes of up to ±10%, with three starts each, check sensitivity. The adjusted Rand index measures agreement between groupings after allowing for chance; 1 means identical membership. These are stability checks, not confidence intervals. Changing tonnes to thousands of tonnes leaves the groups unchanged. All fits are saved.

For the export stop, let wijw_{ij} be exports from economy ii to jj, and Ij=∑iwijI_j=\sum_i w_{ij} be jj’s imports. If supplier ss stops, directly exposed imports are dj=wsjd_j=w_{sj}, with share dj/Ijd_j/I_j when Ij>0I_j>0.

For the second step, each other supplier cuts exports by ci=di/Iic_i=d_i/I_i, or zero if it has no recorded imports. The stopped supplier keeps cs=1c_s=1. Total exposed imports are

ℓj=∑iciwij.\ell_j=\sum_i c_iw_{ij}.

The displayed share is ℓj/Ij\ell_j/I_j. Further exposure is the increase over the direct step, not direct exposure counted again. Partners and export proportions stay fixed. There is no repeated calculation towards a worldwide collapse. Gross flows can count the same goods crossing several borders.

World Bank series NY.GDP.MKTP.CD supplies total nominal 2021 GDP in current US dollars, from the frozen revision dated 11 November 2026. It matches 201 of 226 economies. Reporting codes and display aliases are retained in the downloadable crosswalk. Namibia is matched through NAM; BACI code 490 is displayed at Taiwan while its source label is preserved.

The map uses the Natural Earth I projection. Small territories may have a flag without a visible polygon. Connections crossing the Pacific continue on the other side. Cached paths and a background worker keep interaction light; dense networks may soften at extreme zoom. Tables offer the same values when the drawing is unavailable.

Sources and reproduction

The repository’s trade-source, trade-assets, trade-communities and trade-project scripts reproduce the data and saved groups. Site builds use those saved results.

Data: CEPII BACI HS17 V202601; World Bank WDI 2021.

Additional credits & references

  • CEPII BACI: Gaulier and Zignago (2010), reconciled UN Comtrade data, Etalab Open Licence 2.0
  • World Bank WDI: total nominal GDP in 2021 current US dollars
  • Natural Earth world map, public domain; flag-icons 7.6.0, MIT

Published 27 October 2026 · Revised 23 November 2026. categorical map · network diagram · network communities.

Rendering plate…