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 https://nath54.github.io/nagraph/.
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.1.tar.gz
(19.5 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.1-py3-none-any.whl
(18.6 kB
view details)
File details
Details for the file nagraph-0.1.1.tar.gz.
File metadata
- Download URL: nagraph-0.1.1.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a8d2d2d7c9efffddd9a0ce0ab6b62c6f4c36a15f9bb1257b5198aeb6ee90541
|
|
| MD5 |
995116c153f898920dda0e88626fe602
|
|
| BLAKE2b-256 |
3e334cb5aeadb62718e44adb190ef34dfbbf6736ecdbff947132cfba19439006
|
File details
Details for the file nagraph-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nagraph-0.1.1-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 |
c72b346940a5903880e417cda13d26faf36375b058059ae469537cfb6fa64aeb
|
|
| MD5 |
19ffe13254e9f4977f06f19c02435bb2
|
|
| BLAKE2b-256 |
6cd522dafb4f5034e57d4989a1cbf0c649d8fae1aa5cb948846e5b2a2d53ca86
|