# Ouroboroslib
A Graph Abstract Data Type Library. Named after the symbol of a serprent eating its own tail.
## Installation
`pip3 install ouroboroslib`
## Usage
```py
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()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/williamvietnguyen/ouroboroslib",
"name": "ouroboroslib",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,graph,data,structure,data-structure",
"author": "William Nguyen",
"author_email": "williamvnguyen2@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b3/36/58cabcc44e567246b56447c1e5a7d577899fe67e0e535c79be27edbcfdb2/ouroboroslib-0.0.2.tar.gz",
"platform": null,
"description": "\n# Ouroboroslib\n\nA Graph Abstract Data Type Library. Named after the symbol of a serprent eating its own tail.\n\n## Installation\n\n`pip3 install ouroboroslib`\n\n## Usage\n\n```py\nfrom ouroboroslib import OuroborosGraph\n\nouroboros = OuroborosGraph(directed=True)\n# Each tuple in the edge list is (starting_node, ending_node, edge_value)\nouroboros.overwrite_graph(edge_list=[(1, 2, 7), (2, 3, 10)])\nouroboros.add_node(4)\nouroboros.add_edge(3, 4, value=7)\nouroboros.delete_node(2)\n# {(3, 4, 7)} - only 1 edge because node 2 is deleted\nedges = ouroboros.tuple_edges()\n```\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A Graph Abstract Data Type",
"version": "0.0.2",
"split_keywords": [
"python",
"graph",
"data",
"structure",
"data-structure"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "1588590a62d71bc9f3ec89aee9191bd7",
"sha256": "bd550413e6e3ed529733ed118c352a8fc4fbe23af193002d5a20efba999f7c3f"
},
"downloads": -1,
"filename": "ouroboroslib-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1588590a62d71bc9f3ec89aee9191bd7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4420,
"upload_time": "2022-12-18T20:48:21",
"upload_time_iso_8601": "2022-12-18T20:48:21.342366Z",
"url": "https://files.pythonhosted.org/packages/2e/9b/17de49db026a022c8a8eea86870e9452588420432ed6978ba48d768d8d08/ouroboroslib-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "e330ef96e8cc01356bdf2c976d987822",
"sha256": "cd2f12d937ad8c7c7e12aed52d11c38f4eee18dbdfba09bfd7fb4a3a8091870d"
},
"downloads": -1,
"filename": "ouroboroslib-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "e330ef96e8cc01356bdf2c976d987822",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4098,
"upload_time": "2022-12-18T20:48:24",
"upload_time_iso_8601": "2022-12-18T20:48:24.063631Z",
"url": "https://files.pythonhosted.org/packages/b3/36/58cabcc44e567246b56447c1e5a7d577899fe67e0e535c79be27edbcfdb2/ouroboroslib-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-18 20:48:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "williamvietnguyen",
"github_project": "ouroboroslib",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ouroboroslib"
}