Incremental and parallel algorithms for dense subgraph mining