Skip to content

Latest commit

Β 

History

History
85 lines (62 loc) Β· 2.76 KB

File metadata and controls

85 lines (62 loc) Β· 2.76 KB

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.