hatvis.interactive#

Self-contained interactive HTML viewer (the successor of the HyperGodot interface).

to_html() writes a single HTML file (no external resources) in which the hypergraph can be explored in any modern browser: vertices can be dragged and the padded convex hulls of the hyperedges follow them (recomputed with Andrew’s monotone chain, as in HyperGodot); the view can be zoomed and panned; clicking a vertex keeps only its hyperedges (click again to restore); group tags (e.g. time slices, human/machine work) get their own line styles and can be switched on and off; the layouts precomputed in Python (HAT-VIS similarity, HyperGodot force-directed, membership-aware, circular, …) can be switched; vertex sizes and hull widths can be bound to the degree, weight or size; the current view can be saved as SVG.

Self-contained HTML viewer of a hypergraph.

Functions#

to_html(H[, path, layouts, pos, group, ...])

Write a self-contained interactive HTML view of a hypergraph and return the HTML text.