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"orkind="edge"andbipartite=0/1; graph edges carry the incidence value asweight. 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.