In the graph in the following figure, the nodes represent countries, edges connect countries that trade with each other, and the numbers on the edges represent trade propensity.
Graph of Trading Partners
The graph in the preceding figure is represented by the vertices and edges tables country and trade, respectively.
countryid | name |
---|---|
1 | USA |
2 | China |
3 | UK |
4 | Japan |
5 | France |
fromid | toid | tradeweight |
---|---|---|
1 | 2 | 0.8 |
1 | 3 | 0.5 |
1 | 4 | 0.8 |
2 | 3 | 0.5 |
3 | 1 | 0.2 |
3 | 4 | 0.3 |
3 | 5 | 0.4 |
5 | 1 | 0.5 |