Community detection as a tool for DMA identification