Much cleaner graph aggregation and serialization