Skip to main content

GraphFlex

Flexible Framework for Graph Feature Engineering

PyPI Python Version License: MIT GitHub Actions Workflow Status Docs Scikit-learn compatible

GraphFlex is a modular and extensible framework for graph-based feature engineering in Python. It allows seamless integration of graph datasets with traditional machine learning pipelines using familiar tools like scikit-learn.

🔗 Homepage & Documentation: GraphFlex on GitHub

📦 Installation

pip install graphflex

Optional Dependencies

GraphFlex supports several optional extras. Install them with:

pip install "graphflex[dgl]"
pip install "graphflex[neo4j]"
pip install "graphflex[rdflib]"
pip install "graphflex[full]"  # all optional features

🔍 Example Usage

# GraphFlex pipeline
from graphflex import GraphFlex
from graphflex.functions.postprocessing.filter import NonUniqueFeatureFilter
from graphflex.functions.feature import MeanStdFeature
from graphflex.functions.edgenode import NumericalEdgeNode

connect = Connector(...) #use defined connector here
gflex = GraphFlex(
    connector=connect,
    node_feature=MeanStdFeature(),
    edge_node_feature=NumericalEdgeNode(),
    post_processor=NonUniqueFeatureFilter()
)
nodes = ...
feature_matrix = gflex.fit_transform(nodes)

✨ Features

  • Plug-and-play feature extraction for graph nodes
  • Compatible with scikit-learn pipelines
  • Support for multiple graph backends (DGL, RDFLib-HDT, Neo4j, ...)
  • Built-in feature functions and postprocessing modules
  • Easily extendable with custom logic

📚 Documentation

For full documentation, examples, and API reference, visit the GraphFlex repository.


⚙ Dependencies

  • Python ≥ 3.10
  • numpy, pandas, scikit-learn, tqdm
  • Optional: dgl, torch, torchdata, rdflib-hdt, neo4j, PyYAML, pydantic

👤 Author

Bram Steenwinckel – bram.steenwinckel@ugent.be


📄 License

This project is licensed under the MIT License.

Metadata

Release files for graphflex 0.1.1

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

Source distribution (sdist)

Source distribution for graphflex 0.1.1
File Size Uploaded
graphflex-0.1.1.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for graphflex 0.1.1
File Interpreter ABI Platform
graphflex-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 kB

Release files / graphflex-0.1.1.tar.gz

Download URL graphflex-0.1.1.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
535d77bbeaf2f45d4010d4f47ec9e571c98ed04ec1ee65b0942da0b306c953cf
BLAKE2b-256 checksum
How to use checksums
7fa041d371a95f77846539a2c04b280deab9dbd6c38fcecb25b7ccb22ebe05e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / graphflex-0.1.1-py3-none-any.whl

Download URL graphflex-0.1.1-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
033bc3235055fa622ee05ad4bf5dcbd0c29afa19629f21b3180c39b3c32cd792
BLAKE2b-256 checksum
How to use checksums
343f1b379655408dcb7bc455e0f38b3343a156b0d7750874305e89449e7fbb23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release 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