Skip to main content

Graphion

Graphion is a modular and extensible Python framework for building graph-based data processing pipelines.

Instead of providing a single clustering or graph algorithm, Graphion offers reusable building blocks for constructing complete graph analytics workflows, from feature relations to graph construction, partition detection, refinement, reduction, and evaluation.

The framework is designed around interchangeable pipeline stages, allowing researchers and developers to combine different algorithms with a consistent interface.

Project status: Early development (pre-release)


Features

Graphion currently provides the following components:

Relation Builders

Build pairwise relations between feature vectors using multiple similarity and distance metrics.

Implemented metrics include:

  • Cosine Similarity
  • Dot Product
  • Pearson Correlation
  • Angular Similarity
  • Euclidean Distance
  • Manhattan Distance
  • Chebyshev Distance
  • Minkowski Distance
  • Canberra Distance
  • Bray-Curtis Distance
  • Hamming Distance
  • Jaccard Similarity
  • Weighted Jaccard
  • Dice Similarity
  • Overlap Coefficient
  • Tanimoto Similarity
  • RBF Similarity

Graph Builders

Construct graphs from pairwise relations using multiple strategies.

Implemented builders include:

  • Threshold Graph
  • Radius Graph
  • k-Nearest Neighbors (kNN)
  • Mutual kNN
  • Symmetric kNN
  • Weighted kNN
  • Adaptive kNN
  • kNN + Threshold
  • Shared Nearest Neighbor (SNN)
  • Relative Neighborhood Graph (RNG)
  • Minimum Spanning Tree (MST)

Graph Refiners

Graph transformation stages.

Currently available:

  • Identity Refiner

Partition Detectors

Detect graph communities using interchangeable algorithms.

Implemented algorithms include:

  • Connected Components
  • Leiden
  • Louvain
  • Label Propagation
  • Walktrap
  • Fast Greedy
  • Girvan-Newman
  • Spectral Clustering
  • Agglomerative Clustering
  • Infomap
  • Identity

Partition Refiners

Post-process detected communities.

Currently available:

  • Identity Refiner

Reducers

Dimensionality reduction modules.

Implemented reducers:

  • PCA
  • Truncated SVD
  • Random Projection
  • UMAP
  • t-SNE
  • Isomap
  • Autoencoder
  • Identity

Evaluation

Built-in evaluation utilities for:

  • Feature sets
  • Graphs
  • Partition sets
  • Feature partitions

Design Principles

Graphion is designed around several core principles:

  • Modular architecture
  • Consistent interfaces
  • Pluggable algorithms
  • Strong typing
  • Clear separation of responsibilities
  • Pipeline-oriented execution
  • Easy extensibility

Every processing stage follows a common execution interface, making it straightforward to replace one algorithm with another.


Project Structure

Graphion/
│
├── builders/
│   ├── relation/
│   └── graph/
│
├── reducers/
│
├── refiners/
│   ├── graph/
│   └── partition/
│
├── detectors/
│   └── partition/
│
├── evaluation/
│
└── core/
    ├── interfaces/
    ├── models/
    ├── results/
    ├── errors/
    └── types.py

Installation

Graphion is currently under active development.

Clone the repository:

git clone https://github.com/sahrayi/Graphion.git

Install in editable mode:

pip install -e .

Roadmap

Planned features include:

  • Additional graph construction algorithms
  • More community detection methods
  • Hierarchical partition refinement
  • Graph embedding modules
  • Visualization utilities
  • Benchmark suite
  • Documentation website
  • Comprehensive test coverage

Related Projects

Graphion serves as the foundation for higher-level graph analytics libraries.

For example:

  • GraphTopic (graph-based topic discovery)

License

MIT License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphion-0.0.1.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

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

graphion-0.0.1-py3-none-any.whl (96.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphion-0.0.1.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for graphion-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9044b05bbefb8f33a4b7ea4e8bd0556ad851855d77f778139f7db7de76ee4b93
MD5 e476cc74e9a4dde1b985ab9f4ca6f7b6
BLAKE2b-256 d7ecef0a24da58bfc1e18c72f987c7265d30213a3ce5e3b25cc221023a953fc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphion-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 96.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for graphion-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f23aa929d78f0af6e93f35979c31f1726624845c650d3a84cacaa97340f4eb9
MD5 109345cb310fdd42b5621e601974c95f
BLAKE2b-256 e3d27eb4beca909be363ddb219e91a7c656bb45dea48b91cf5ccb3629b091866

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.2

2 files

This release

0.0.1 This release

2 files

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