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.0.1.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.0.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for graphflex-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e28d707d5d3c323b5b17893e811530da424365a67beaec25d65ef6d755b491e3
MD5 304dc22fde96ef27ca4b1b763bfdfdd2
BLAKE2b-256 81a3ec5271dfc510f7f1e9904dcf865c0073a2d5355f9d64b8b83f1e2137edea

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for graphflex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 825fee260a574cd67ce59a6ca95bf98cf8c6d1d4c690bc9fb2fb3ffaa41bd7e8
MD5 ffe46090256f6d604465753f6b37c660
BLAKE2b-256 3cf344437a1ccf718c494f0419ac3a99e5992909df578b36036fe633fb48ef5d

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