A Python library for graph data structures and algorithms
Project description
nagraph
A Python library for graph data structures and algorithms.
Installation
pip install nagraph
Usage
from nagraph import Graph, GraphNode
# Create a graph
g = Graph(weighted=True)
node1 = g.add_node("1")
node2 = g.add_node("2")
g.add_edge("1", "2", weight=1.5)
# Example: Find shortest path
path = g.get_shortest_path("1", "2")
print(path) # ['1', '2']
Documentation
Full documentation is available at link.
License
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
nagraph-0.1.0.tar.gz
(19.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nagraph-0.1.0-py3-none-any.whl
(18.6 kB
view details)
File details
Details for the file nagraph-0.1.0.tar.gz.
File metadata
- Download URL: nagraph-0.1.0.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18686c499a173ddc389b46e5512d4da1f16c9df014ff28eb920bc70fda110c78
|
|
| MD5 |
339d02b9aad69c658e3d300f23f992aa
|
|
| BLAKE2b-256 |
b09f7470d0cc81c593591988fe63d931b50c28beb3e4de98e60f9503adf59e1a
|
File details
Details for the file nagraph-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nagraph-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99db4f5abade5873bf9bc3ae2661fa590169b808a0368434399a9e23e9e939d0
|
|
| MD5 |
09ec04bf41ed7183afffea5650641ba1
|
|
| BLAKE2b-256 |
acf203ae8a0ada3ff7be59101a4e42094767149270938637520c2d655bb375d8
|