Meso level network measure participation coefficient as defined by Guimera et al.
Project description
Participation coefficient
Computes the participation coefficient of nodes as defined by R. Guimera in the papers:
Guimera, R., Mossa, S., Turtschi, A., & Amaral, L. N. (2005). The worldwide air transportation network: Anomalous centrality, community structure, and cities' global roles. Proceedings of the National Academy of Sciences, 102(22), 7794-7799.
and
Guimera, R., & Amaral, L. A. N. (2005). Cartography of complex networks: modules and universal roles. Journal of Statistical Mechanics: Theory and Experiment, 2005(02), P02001.
This is a meso level statistics requiring and depending on a community structure of the graph. Because community structures may not be stable, the routine iteratively calls the Leiden community finding algorithm before computing a ratio reflecting how much a node connects to other communities in a diverse manner.
Installing and using the plugin
The library relies on tulip-python
, a python binding of the C++ Graph Visualization framework Tulip. Tulip also comes as a GUI.
Several libraries need to be installed prior to using the plugin, that can for instance be installed running poetry install --no-root
. The specific dependencies are listed as part of the pyproject.toml
file. A simple test script can optionally be run.
The plugin itself is typically used as:
# assuming a graph as already been defined
params = tlp.getDefaultPluginParameters('Participation Coefficient', graph)
community = graph.getIntegerProperty('community')
params['communities'] = community
particip = graph.getDoubleProperty('participation')
params['result'] = particip
graph.applyDoubleAlgorithm('Broker score', particip, params)
Alternatively, the plugin may be used within the Tulip GUI after the script has been loaded and ran.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file participation_coefficient-0.1.0.tar.gz
.
File metadata
- Download URL: participation_coefficient-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7d82852b99876972e0e7d490aaaeace7582cd1b04ff98a7c62285aa907258f |
|
MD5 | b2bc8c7a2497de17eed77a14105d756e |
|
BLAKE2b-256 | e1e683217623c0e38a15c702434452a32d16565d8b09e53ad25b9c3741e2692d |
File details
Details for the file participation_coefficient-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: participation_coefficient-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34e1794f8a3fe6969b77de51efa5e988097bb8ec0ce00a8f9a5d9e9d77060e32 |
|
MD5 | 76fe19b2916e6df1e7869c08af6c6e4c |
|
BLAKE2b-256 | af31512b9dddc5acb324691ff551181fa52556f3732e39fa5523b3e72144d4c8 |