NetworkZ
NetworkZ is a library of graph algorithms in Python. It is an extension of the NetworkX. It contains (by import) everything that is in NetworkX, plus some additional algorithms that were submitted into NetworkX but not merged yet. Currently, NetworkZ contains the following additional algorithms:
- Rank-maximal matching: by Oriya Alperin, Liel Vaknin and Amiel Lejzor.
- Social-aware coalition formation - by Victor Kushnir.
Installation
pip install networkz
This installs the latest version of networkx, and the new algorithms added in networkz.
Usage
Rank Maximal Matching Algorithm
A rank-maximal matching is a matching that maximizes the number of agents who are matched to their 1st priority; subject to that, it maximizes the number of agents matched to their 2nd priority; and so on.
import networkz as nx
G = nx.Graph()
G.add_nodes_from(["agent1", "agent2"], bipartite=0)
G.add_nodes_from(["product1", "product2"], bipartite=1)
G.add_weighted_edges_from([("agent1", "product1", 1), ("agent1", "product2", 1), ("agent2", "product2", 2)])
matching = nx.rank_maximal_matching(G, rank="weight")
print(matching)
See demo website for more information.
Social-aware coalition formation
(TODO)
Contribution
Any additions or bug-fixes to networkx should first be submitted there, according to the NetworkX Contributor Guide.
If the pull-request is not handled, you are welcome to submit it here too.
Metadata
Release files for networkz 1.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 | Provenance | Actions |
|---|---|---|---|---|
| networkz-1.0.6.tar.gz | 13.4 kB | Without provenance | Details for networkz-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| networkz-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for networkz-1.0.6-py3-none-any.whl |
Total release size: 28.8 kB
Release files / networkz-1.0.6.tar.gz
| Download URL | networkz-1.0.6.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c87139c8a41e7c98fb06ffdabfbee16c9187c0177a8378f3cbb62d724a3f290c
|
|
BLAKE2b-256 checksum How to use checksums |
3f2b2f7891a9d4f17c5b6e5b77d668d074cdb34d638f35bbbdbdaff922f51ec2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / networkz-1.0.6-py3-none-any.whl
| Download URL | networkz-1.0.6-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5513fc5e3deeaafa780fdce7031c8ad6599ff35673ab7ffbda9c05d05778e598
|
|
BLAKE2b-256 checksum How to use checksums |
05103b952be9ce8795211f40aefacdf9fb8e32025b1fc0e4921dd9e086ce6a81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for networkz 1.0.6
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.