This generator was written for a project undertaken as part of the course CS 7280 - Network Science. The analysis performed using the code can be found in the report here.
This repository contains the code for generating a network using the RP-model proposed by Sabrin et al. [1]. It can also be used for computing various hourglass network metrics for the generated network (or an existing network) e.g., Core Size, H-score, etc. The usage of this code can be printed by executing the following command.
python hourglass.py --help
- Python (tested with version 2.7)
- NumPy (tested with version 1.11.0)
- igraph (tested with version 0.7)
- NetworkX (tested with version 1.10)
[1] Sabrin, K. M., & Dovrolis, C. (2017). The hourglass effect in hierarchical dependency networks. Network Science, 1-39.