Skip to main content

Flexible Framework for Graph Feature Engineering

Project description

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 Steenwinckelbram.steenwinckel@ugent.be


📄 License

This project is licensed under the MIT License.

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

graphflex-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

graphflex-0.1.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file graphflex-0.1.1.tar.gz.

File metadata

  • Download URL: graphflex-0.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for graphflex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 535d77bbeaf2f45d4010d4f47ec9e571c98ed04ec1ee65b0942da0b306c953cf
MD5 b3feed5191b394acc48a7abe0d270512
BLAKE2b-256 7fa041d371a95f77846539a2c04b280deab9dbd6c38fcecb25b7ccb22ebe05e5

See more details on using hashes here.

File details

Details for the file graphflex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: graphflex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for graphflex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 033bc3235055fa622ee05ad4bf5dcbd0c29afa19629f21b3180c39b3c32cd792
MD5 7c7aed45fab4b32a12a2755db9be920d
BLAKE2b-256 343f1b379655408dcb7bc455e0f38b3343a156b0d7750874305e89449e7fbb23

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