get densest subgraph