hatvis.plotting.plot_lattice#

hatvis.plotting.plot_lattice(G, ax=None, label='members', size_attr='weight', max_label=4, title=None)[source]#

Draw an inclusion lattice (Hasse diagram, hatvis.patterns.inclusion_lattice()) in levels by size.

Node area grows with size_attr (e.g. support); arcs go upwards from a set to its covers.

Examples using hatvis.plotting.plot_lattice#

Frequent itemsets as a hypergraph

Frequent itemsets as a hypergraph