hatvis.partition.cut_metrics#
- hatvis.partition.cut_metrics(H, partition)[source]#
Quality of a vertex partition.
cut(cut-net): total weight of hyperedges that touch more than one block;km1(connectivity − 1): \(\sum_e w_e(\lambda_e-1)\), where \(\lambda_e\) is the number of blocks touched by \(e\);soed: sum of external degrees, \(\sum_{e\,\mathrm{cut}} w_e\lambda_e\);imbalance: largest block size divided by the ideal size, minus one.