hatvis.representations.star_expansion#

hatvis.representations.star_expansion(H, edge_suffix='')[source]#

Star expansion: the bipartite vertex–hyperedge (Levi / König) graph.

Graph nodes carry kind="node" or kind="edge" and bipartite=0/1; graph edges carry the incidence value as weight. If a hyperedge label coincides with a vertex label, edge_suffix (default "*" on clash) is appended to the hyperedge label.

The star expansion is lossless: hatvis.io.from_bipartite() inverts it.