hatvis.interactive.to_html#

hatvis.interactive.to_html(H, path=None, layouts=('similarity', 'force', 'membership', 'circular'), pos=None, group=None, node_color=None, edge_color=None, title=None, random_state=0)[source]#

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

Parameters:
HHypergraph
pathstr or Path, optional

Output file; if omitted only the HTML string is returned.

layoutssequence of str

Layouts precomputed for the layout switch (names of hatvis.plotting.resolve_layout()).

posdict, optional

An additional user layout, listed first as "custom".

groupstr, optional

edge_data column used as group tag (line styles, toggles).

node_color, edge_colormapping label -> color, optional