A network is created with all the municipalities of Mexico as nodes and each node is linked to its neighboring municipalities.
Only open the google colab file and follow the indications.
The data used is download from INEGI portal
http://internet.contenidos.inegi.org.mx/contenidos/Productos/prod_serv/contenidos/espanol/bvinegi/productos/geografia/marcogeo/889463142683_s.zip
that the last update is from 2017.
The result is a Networkx graph and to visualize the network I use Plotly module.
Python 3