hatvis.plotting.plot_incidence#

hatvis.plotting.plot_incidence(H, order='barycentric', *, ax=None, weighted=True, transpose=False, biclusters=None, labels=True, cmap=None, colorbar=False, grid=True, node_groups=None, label_size=7, title=None)[source]#

Incidence matrix as a heat map, optionally seriated and with highlighted biclusters.

order: "barycentric" (HAT-VIS iteration), "correspondence", "hierarchical", None or an explicit (row_labels, col_labels) tuple. transpose=True puts the hyperedges in rows (as in the manufacturing-space figure of Nagy et al. 2022). biclusters is the output of hatvis.seriation.bicluster_blocks(); each block is outlined by the rectangle spanning its rows and columns in the current order. node_groups colors the vertex tick labels by a node_data column.

Examples using hatvis.plotting.plot_incidence#

A first hypergraph: incidence matrix, dual and degrees

A first hypergraph: incidence matrix, dual and degrees

Seriation of the incidence matrix

Seriation of the incidence matrix

Biclusters of the manufacturing space

Biclusters of the manufacturing space

Forming manufacturing cells from the hypergraph

Forming manufacturing cells from the hypergraph

Co-clustering vertices and hyperedges

Co-clustering vertices and hyperedges