hatvis.io.to_hif#

hatvis.io.to_hif(H, metadata=None)[source]#

Convert to a HIF dictionary (network-type, nodes, edges, incidences).

Hyperedge weights go to the weight field of the edge records, incidence values to the weight field of the incidence records, attribute tables to attrs. A DirectedHypergraph gets direction = tail/head.