get_metrics function

Detect graph communities for each biodiversity feature.