agg2graph