Skip to main content
Quarantined

This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.

NetWeaveX

PyPI version Python versions License

NetWeaveX is a Python library for building, analyzing, and storing graphs and networks.

import netweavex as nx

G = nx.Graph()
G.add_edge("A", "B", weight=4)
G.add_edge("B", "D", weight=2)
G.add_edge("A", "C", weight=3)
G.add_edge("C", "D", weight=4)

print(nx.shortest_path(G, "A", "D", weight="weight"))
# ['A', 'B', 'D']

Installation

pip install netweavex

Python 3.12 or newer is required. Python 3.14.1 is not supported.

The base install has no required third-party dependencies. Install the scientific extras when you want arrays, matrices, data frames, or drawing:

pip install "netweavex[default]"
Extra Includes
default NumPy, SciPy, Matplotlib, pandas
extra lxml, PyGraphviz, pydot, SymPy
test pytest

What you can do

  • Build undirected, directed, and multigraphs, including views and subgraphs.
  • Generate classic, random, lattice, tree, and community graphs.
  • Run shortest paths, centrality, clustering, components, flows, matching, isomorphism, and community detection.
  • Read and write GraphML, GEXF, GML, edge lists, adjacency lists, and JSON.
  • Draw graphs when Matplotlib, Graphviz, or pydot is installed.

Quick start

import netweavex as nx

G = nx.karate_club_graph()

print(G.number_of_nodes(), G.number_of_edges())
print(nx.density(G))
print(sorted(nx.degree_centrality(G), key=nx.degree_centrality(G).get, reverse=True)[:5])

nx.write_graphml(G, "karate.graphml")
H = nx.read_graphml("karate.graphml")

Directed graphs use nx.DiGraph. Multiple edges between the same nodes use nx.MultiGraph or nx.MultiDiGraph.

D = nx.DiGraph([(1, 2), (2, 3), (3, 1)])
print(nx.is_strongly_connected(D))

License

NetWeaveX is released under the 3-clause BSD license. See LICENSE.txt.

Metadata

Release files for netweavex 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netweavex 1.1.2
File Size Uploaded Provenance
netweavex-1.1.2.tar.gz 1.9 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for netweavex 1.1.2
File Interpreter ABI Platform
netweavex-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 4.0 MB

Release files / netweavex-1.1.2.tar.gz

Download URL netweavex-1.1.2.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
5d84d4e4da39bf25cd67f4593ac3e2c4ef2ea3733e6f203cb705a9c2f77a0599
BLAKE2b-256 checksum
How to use checksums
edec2b6068dfcbd43f7ba6f0a08d48106aa6ebda7f2230e30ca20d71c762bfcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / netweavex-1.1.2-py3-none-any.whl

Download URL netweavex-1.1.2-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ddc8043036875be0fffdfbf8302f1a77519554a0b07aae0d093cd0418b683026
BLAKE2b-256 checksum
How to use checksums
302c1e7a95d0cc2da91d51e2f38bf9c2624b4109ce5bb1a3404df39b5199a127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for netweavex 1.1.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page