Computes the F1Score between two graph partitions