Skip to main content

Hypergraph data structure in Python.

Project description

pypergraph

CI status Documentation Status PyPI version Python version

pypergraph is a pure Python package for representing hypergraphs of both the directed and undirected varieties.

Installation

pypergraph requires Python 3.7 or later.

pip install pypergraph

Usage

Currently, only basic in-memory mutation of hypergraphs is possible.

>>> import pypergraph as ppg
>>> V = ppg.V
>>> h = ppg.Hypergraph()
>>> h.add_node("A")
>>> h.add_edge(V(0, "A") >> V(1, 2, 3))

Documentation

Documentation may be found at https://pypergraph.readthedocs.io/.

Licence

pypergraph is released under the MIT licence.

Roadmap

pypergraph is still in early stages of development. The steering goal is to reach a point where pypergraph may be used to reason about functional dependencies and support data orchestration.

These Python packages are considered to be role models:

See also

There are a handful of Python packages which can be used to represent hypergraphs.

At a high level, these gaps exist:

  • Support for directed hypergraphs
  • A flexible data model suitable for domain applications

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

pypergraph-0.0.1.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

pypergraph-0.0.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file pypergraph-0.0.1.tar.gz.

File metadata

  • Download URL: pypergraph-0.0.1.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for pypergraph-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a20268030b29334f186781cb54c6f5d950bbffdcd6e542458d55fcdb4386f9b8
MD5 7ed28b00c012da0c28091e9494a076e3
BLAKE2b-256 fb2ad18c813e50c376b2e48ef4e004c34417dc01738da0e63c38cf1807374fc4

See more details on using hashes here.

File details

Details for the file pypergraph-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pypergraph-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for pypergraph-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c06537842a2ab316a36dfd3ab657ade101ea6df5daa5176711fe6f2abb7e82b3
MD5 ba137581cfa8a025349d5d8372194140
BLAKE2b-256 c7a7d8b1956134435a532a4e797366030cf52ba7b1f0bfba864e5572b8e80aa8

See more details on using hashes here.

Supported by

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