A Graph Abstract Data Type
Project description
Ouroboroslib
A Graph Abstract Data Type Library. Named after the symbol of a serprent eating its own tail.
Installation
pip3 install ouroboroslib
Usage
from ouroboroslib import OuroborosGraph
ouroboros = OuroborosGraph(directed=True)
# Each tuple in the edge list is (starting_node, ending_node, edge_value)
ouroboros.overwrite_graph(edge_list=[(1, 2, 7), (2, 3, 10)])
ouroboros.add_node(4)
ouroboros.add_edge(3, 4, value=7)
ouroboros.delete_node(2)
# {(3, 4, 7)} - only 1 edge because node 2 is deleted
edges = ouroboros.tuple_edges()
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
ouroboroslib-0.0.2.tar.gz
(4.1 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
File details
Details for the file ouroboroslib-0.0.2.tar.gz.
File metadata
- Download URL: ouroboroslib-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd2f12d937ad8c7c7e12aed52d11c38f4eee18dbdfba09bfd7fb4a3a8091870d
|
|
| MD5 |
e330ef96e8cc01356bdf2c976d987822
|
|
| BLAKE2b-256 |
b33658cabcc44e567246b56447c1e5a7d577899fe67e0e535c79be27edbcfdb2
|
File details
Details for the file ouroboroslib-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ouroboroslib-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd550413e6e3ed529733ed118c352a8fc4fbe23af193002d5a20efba999f7c3f
|
|
| MD5 |
1588590a62d71bc9f3ec89aee9191bd7
|
|
| BLAKE2b-256 |
2e9b17de49db026a022c8a8eea86870e9452588420432ed6978ba48d768d8d08
|