Python package for the analysis of complex networks
Is it a fork? Is it a re-implementation? I don't know! What I do know is that this project uses for the implementations the algorithms from the projects NetCenLib and NetworkX. This project also attempts to have the for NetworkX configurable speed-up options pre-configured.
This project is for the most part an extension to NetCenLib and therefore uses the same structure
The aim is to simplify the analysis step by returning an optionally sorted and/or with the computed values re-scaled pandas DataFrame.
Installation
pip install netcenframe
parameters
configuration
To configure the library, there is a netcenframe.centrality.configure() functionality
where settings can be passed to for the duration of the program's runtime
- sort: default is True
- sorts the returned dataframe from highest to lowest centrality value
The default settings need to be applied with a call to
netcenframe.centrality.configure()
- sorts the returned dataframe from highest to lowest centrality value
The default settings need to be applied with a call to
- They aren't automatically applied because some people would like to use their own parallel settings.
Calls to compute centralities looks like the examples below, in which the graph measure betweenness centrality will be computed via the library NetworkX and return a pandas DataFrame which is already sorted. Before a dataframe is returned, the data is saved as a file in CSV format for later usage, for example in other programs.
Two ways of calling functionalities in the library
example usage with imports and configuration:
# imports for netcenframe to make it easier to use
from netcenframe.centrality import compute_centrality as compute
from netcenframe.centrality import configure
from netcenframe.taxonomies.Centrality import BETWEENNESS, CLOSENESS, DEGREE
configure()
sorted_df = compute(/$graph, BETWEENNESS)
example without imports
import netcenframe
# apply config:
netcenframe.centrality.configure()
# run centrality
sorted_df = netcenframe.centrality.compute_centrality(/$graph, netcenframe.taxonomies.Centrality.BETWEENNESS)
Metadata
Release files for netcenframe 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netcenframe-0.0.6.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netcenframe-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / netcenframe-0.0.6.tar.gz
| Download URL | netcenframe-0.0.6.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b65d42a5ffd4e2b0ad7b8b1c294627e0c1f3a24ea40fe01e6868abcbb878914
|
|
BLAKE2b-256 checksum How to use checksums |
8552c6fb8c324dc839d238ff83377a63a21148b5c60c89f847abb2e07e8c593d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / netcenframe-0.0.6-py3-none-any.whl
| Download URL | netcenframe-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f5c7a9ece0949d361f7b31041fd94dbf78dee2c499b3dc8d533b63519d51ed0
|
|
BLAKE2b-256 checksum How to use checksums |
f7d759384561a732818f0399186ad273a5609a07956a6828c31b63c3bb3b21d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|