hatvis.patterns.inclusion_lattice#

hatvis.patterns.inclusion_lattice(sets, labels=None, weights=None)[source]#

Hasse diagram of the inclusion order of a family of sets.

sets is a hypergraph (its hyperedges) or a sequence of sets (e.g. the itemset column of a frequent-itemset table). Arcs point from a set to its covers (minimal proper supersets). Node attributes: members, size, weight and level (= size).

Examples using hatvis.patterns.inclusion_lattice#

Frequent itemsets as a hypergraph

Frequent itemsets as a hypergraph