BiRankpy
Bipartite (two-mode) networks are ubiquitous. When calculating node centrality measures in bipartite networks, a common approach is to apply PageRank on the one-mode projection of the network. However, the projection can cause information loss and distort the network topology. For better node ranking on bipartite networks, it is preferable to use a ranking algorithm that fully accounts for the topology of both modes of the network.
We present the BiRank package, which implements bipartite ranking algorithms HITS, CoHITS, BGRM, and Birank. BiRank provides convenience options for incorporating node-level weights into rank estimations, allowing maximum flexibility for different purpose. It can efficiently handle networks with millions of nodes on a single midrange server. Both R and Python versions.
Overview
birankpy provides functions for estimating various rank measures of nodes in bipartite networks including HITS, CoHITS, BGRM, and Birank.
It can also project two-mode networks to one-mode, and estimat PageRank on it.
birankpy allows user-defined edge weights.
Implemented with sparse matrix, it's highly efficient.
Example
Let's pretend we have a edge list edgelist_df containing ties between top nodes and bottom nodes:
| top_node | bottom_node |
|---|---|
| 1 | a |
| 1 | b |
| 2 | a |
To performing BiRank on, just:
bn = birankpy.BipartiteNetwork()
bn.set_edgelist(edgelist_df, top_col='top_node', bottom_col='bottom_node')
top_birank_df, bottom_birank_df = bn.generate_birank()
Metadata
Release files for birankpy 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| birankpy-1.0.1.tar.gz | 7.7 kB | Without provenance | Details for birankpy-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| birankpy-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for birankpy-1.0.1-py3-none-any.whl |
Total release size: 13.8 kB
Release files / birankpy-1.0.1.tar.gz
| Download URL | birankpy-1.0.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4eecd80e290868ba10c12a280c003cbff55244df5c566e94997fc87cc5819336
|
|
BLAKE2b-256 checksum How to use checksums |
45903476e8bca8c6bed9fd4c943fc319299b9fd5ca5085fb6731d6c86e41a077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / birankpy-1.0.1-py3-none-any.whl
| Download URL | birankpy-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
572579522b410e1ba4db33568b0af5c6e3bc74fc537ce0a18717214c1acafb1e
|
|
BLAKE2b-256 checksum How to use checksums |
706b755ef261820938042d1214e8ff0f8785118c18a86a46b45bd13152433c12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for birankpy 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.