This is the python repository for the works:
- Daniel Hernández Serrano, Juan Hernández-Serrano, Darío Sánchez Gómez, "Simplicial degree in complex networks. Applications of topological data analysis to network science", Chaos, Solitons & Fractals, Volume 137, 2020
- Daniel Hernández Serrano, Javier Villarroel, Juan Hernández-Serrano, Ángel Tocino, "Stochastic simplicial contagion model", Chaos, Solitons & Fractals, Volume 167, 2023
- Angel Tocino, Daniel Hernández Serrano, Juan Hernández-Serrano, Javier Villarroel, "A stochastic simplicial SIS model for complex networks", Communications in Nonlinear Science and Numerical Simulation, Volume 120, 2023
Copy config.ini.template
, edit directory names, and optionally fill your PostgreSQL database details (required for parsing Scholp and ArXiv datasets).
Install all requirements in requirements.txt
arxiv
: scripts for harvesting ArXiv datasets and loading simplicial complexes computed from them into the databasescholp
: scripts for loading simplicial complexes computed from downloaded Scholp datasets into the database.
Working with simplicial complexes in the database (paper in HHS20)
facets.py
: script for computing facets. Runpython facets.py -h
for help.faces_degrees
: compute q-faces and degrees. It MUST be run afterfacets.py
. Runpython faces_degrees.py -h
for help.export_faces_to_csv
: exports computed faces from the database to a CSV file. Runpython export_faces_to_csv.py -h
for help.stats.py
: generate datasets and degrees statistics and exports them to a CSV file. Runpython stats.py -h
for help.figires.py
: generates figures regarding datasets and degrees' statistics. It MUST be run afterstats.py
.
HVHT22_contagion_experiments_by_region.json
: Defines experiment parameters for the contagion model simulationsHVHT22_simplagion_experiment_parameters.ipynb
: Outputs configuration setup (MUST be copied incontagion_experiments.py
) for the contagion model based on the experiments defined inHVHT22_contagion_experiments_by_region.json
contagion_model.py
: Runs the stochastic simplicial contagion model on the datasets defined and using the parameters (experiments) defined incontagion_experiments.py
. Runpython contagion_model.py -h
for help.