Skip to main content

Flexible Framework for Graph Feature Engineering

Project description

GraphFlex

Flexible Framework for Graph Feature Engineering

License: MIT

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.0.tar.gz (9.3 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.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphflex-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for graphflex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 49024660ed863d2e00d854e367ce1a781876131618d61a1d8afce486fbb17578
MD5 d67dbc918ee0a4a05edb708d246820b9
BLAKE2b-256 19ba0c20b2ae79a14c229be5a9a2191e9f92ba5a684790d4d32032731bac754e

See more details on using hashes here.

Provenance

The following attestation bundles were made for graphflex-0.1.0.tar.gz:

Publisher: python-publish.yml on predict-idlab/graphflex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: graphflex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for graphflex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2126a08cf3f6a6869b94c3ea6bc10ae244ea00f00d9dc85e583a581a5ec8b317
MD5 99ccaeed3d84f3fa6ce287283ed7351a
BLAKE2b-256 58d344834df94bc949d9c5ae9dd312dded8aeb07c0b1da4461f1e1fd31ff5765

See more details on using hashes here.

Provenance

The following attestation bundles were made for graphflex-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on predict-idlab/graphflex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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