proto aggregation on flow graphs