hatvis.layout.layout_quality#

hatvis.layout.layout_quality(H, pos, pad=0.02, measure='jaccard', transitive=True)[source]#

Quality of a layout for hypergraph drawing.

  • stress – normalized stress \(\sum(d_{ij}-\alpha\delta_{ij})^2/\sum d_{ij}^2\) after the optimal scaling \(\alpha\), against the similarity dissimilarities;

  • intrusions – number of (vertex, hyperedge) pairs in which a non-member lies inside the padded convex hull of the hyperedge;

  • hyperedges with intrusions – their number of distinct hyperedges;

  • mean hull area – average area of the padded hulls.