Aggregate Functions For Graphs