def METHOD_NAME(self, config):
    # Get community detection algorithm
    algorithm = config.get("algorithm")
    if algorithm == "greedy":
        METHOD_NAME = greedy_modularity_communities(self.backend, weight="weight", resolution=config.get("resolution", 100))
    elif algorithm == "lpa":
        METHOD_NAME = asyn_lpa_communities(self.backend, weight="weight", seed=0)
    else:
        METHOD_NAME = self.louvain(config)
    return METHOD_NAME