Two problems in dynamic graph analytics : maximum flow and online partitioning