construct graphs as reduce function
Leveraging graph data structures for complex feature engineering pipelines.