GiulioRossetti / conformity

Conformity: a Path-Aware Homophily measure for Node-Attributed Networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conformity

Downloads Downloads DOI

Conformity implements the path-aware homophily measure as introduced in:

G. Rossetti, S. Citraro and L. Milli.

Conformity: a Path-Aware Homophily measure for Node-Attributed Networks IEEE Intelligent Systems, (2021 to appear), doi:10.1109/MIS.2021.3051291 Pre-Print: https://arxiv.org/abs/2012.05195

Installation

Conformity requires python>=3.6.

To install the latest version of our library just download (or clone) the current project, open a terminal and run the following commands:

pip install -r requirements.txt
pip install .

Alternatively use pip:

pip install node_conformity

Usage

To compute the conformity score for the network nodes follow this example:

from conformity import attribute_conformity

g = nx.karate_club_graph()
node_to_conformity = attribute_conformity(g, list(np.arange(1, 4, 0.2)), ['club'], profile_size=1)

About

Conformity: a Path-Aware Homophily measure for Node-Attributed Networks

License:GNU General Public License v3.0


Languages

Language:Python 100.0%