Skip to content

AramPapaz/Inflow-and-Outflow-Centrality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI

Inflow-and-Outflow-Centrality

This repository presents implementations of the inflow and outflow centrality metrics. Additionally it offers functions to compute the weighted degree and closeness centralities.

These are found in the utilities.py file. They take as input the interaction network as a pandas dataframe and a dictionary containing the node ids as keys and the node features as values.

The example folder contains the airport network used in the paper. The interaction network is found in the AirportNetwork csv file and the log2 population of each city (features) is saved in the population pkl file. The results for inflow and outflow centralities on this network are found in the inflow_output and outflow_output csv files respectively.

Python and package versions

python == 3.12.4
networkx == 3.6
pandas == 2.2.2
numpy == 1.26.4

About

Inflow and Outflow centrality metrics derived from graph convolution

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages