Big Sister Cities is an interactive network graph showing 279 cities with more than 1 million inhabitants and how they are connected to their sister cities within this set. The cities are the nodes which are sized by degree and colored by population and the 852 edges show the sister relations. The data for creating this graph was retrieved from Wikidata in April 2018.
The following list shows the 20 most connected cities within the network. The city name links to the highlighted node in the network, the first number is the count of sister cities and the second the population.
The data underlying this graph was queried from Wikidata's Query Service in April 2018 using this SPARQL query and transformed to a graph structure in Python, you can find the code in this repository.
I rendered the graph in Gephi using the Force Atlas layout. The node colors represent the population values, the darker the larger the city. The size of the nodes represent the degree, i. e. the number of sister cities within this set of cities. The browser version is rendered with the JavaScript library sigma.js.
Published on April 26, 2018 (updated on September 17, 2024) by Ramiro Gómez (@yaph). To be informed of new posts, subscribe to the RSS feed.
Tags: network graph, cities, diplomacy, sigmajs, gephi, networkx.
Check out the source code used to process the data and create the visualizations.
Code Repository