def compute_metrics_MCL(pred, gt):
    """
    Compute the metrics {Precision, Recall, F1-score} for MCL.

    :param pred: target algorithm's output
    :param gt: ground truth

    :return dictionary of computed metrics
    """
    metrics = {}

    tp = len(set(pred).intersection(set(gt)))
    fp = len(set(pred).difference(set(gt)))
    fn = len(set(gt).difference(set(pred)))

    metrics[f'precision'] = p = 0 if tp+fp == 0 else tp / (tp + fp)
    metrics[f'recall'] = r = 0 if tp+fn == 0 else tp / (tp + fn)
    metrics[f'F1-score'] = 0 if p+r == 0 else 2 * (p * r) / (p + r)

    return metrics