Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

What Is Graphine?

Graphine is a flexible, easy-to-use graph library for Python 3. It was developed with four key goals in mind:

1) No external dependencies- no graphics toolkits, no math libraries, just pure Python.

2) Python 3 readiness- if you’re looking at moving your application to Python 3, at least you won’t have to port your graph library too.

3) Flexibility- we aim to support many different graph use cases, from flow networks and planar graphs to tree walking and DAGs.

4) Ease of use- no graph library, however powerful, is useful if you can’t figure it out. We try to make that as painless as possible.

Who Should Use Graphine

1) Developers faced with a data set that naturally decomposes into a graph, but who are unwilling to reinvent graph theory to properly represent it. We make it easy to inspect graphs for special properties, add data and structural elements, and extend graphs for application-specific behavior.

2) Non-mathematicians who need to process complex data structures but aren’t familiar with the formal methods for doing so in the graph context. Graphine doesn’t require a strong mathematical background to use, and is flexible enough to permit graph problems to be represented in their most natural form.

3) Students and teachers looking for a clean, easy-to-understand example of how graph algorithms are supposed to behave.

4) Graph theorists looking for a tool to rapidly sketch out a complex problem without the hassle of manual memory management.

Features

Graphine is designed to be ready-to-use for most graph applications out of the box. It supports easy node and edge addition, modification, and removal, and provides attribute access to application-defined data. Formally, the graphs represented are bridge multigraphs, capable of representing both directed and undirected edges, parallel edges, identical nodes and edges, loops, and arbitrary node and edge labels.

It also provides a powerful set of graph operations, including a* traversals, BFS, DFS, shortest path, edge contraction, generators for random walks, and binary graph operations like union, intersection, and difference.

All of the above is present in the alpha package; experimental support for loading and storing graphs using GraphML and Dot is also included

Metadata

Release files for Graphine 0.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Graphine 0.0a1
File Size Uploaded Provenance Actions
Graphine-0.0.tar.gz 24.3 kB Without provenance Details for Graphine-0.0.tar.gz

Release files / Graphine-0.0.tar.gz

Download URL Graphine-0.0.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
00b8fec9e06a80e908b34408c21c8951e55c873e94d9e83a8b3bb3eb3c761c60
BLAKE2b-256 checksum
How to use checksums
40510517d9b359353654bdd1b61893e1027b6b4d7db32aab59a8be5996b45522
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Graphine 0.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page