Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ouroboroslib-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for ouroboroslib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cd2f12d937ad8c7c7e12aed52d11c38f4eee18dbdfba09bfd7fb4a3a8091870d
MD5 e330ef96e8cc01356bdf2c976d987822
BLAKE2b-256 b33658cabcc44e567246b56447c1e5a7d577899fe67e0e535c79be27edbcfdb2

See more details on using hashes here.

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

Hashes for ouroboroslib-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd550413e6e3ed529733ed118c352a8fc4fbe23af193002d5a20efba999f7c3f
MD5 1588590a62d71bc9f3ec89aee9191bd7
BLAKE2b-256 2e9b17de49db026a022c8a8eea86870e9452588420432ed6978ba48d768d8d08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page