added basic graph aggregation