Skip to content

Lattice

This tutorial demonstrates the construction of lattices of k-dimensional Boolean vectors and Multivariate Boolean Functions (MBFs) with k inputs. These lattics are constructed as networkx digraph. The methods available to interact with these structures are currently limited, but we plan to expland it in the future.

import mbnet as mn

$\mathbb{B}^2$

k = 2
BL = mn.tl.lattice_B(k)
mn.pl.lattice(BL)

img

MBFL = mn.tl.lattice_MBF(k)
mn.pl.lattice(MBFL)

img

$\mathbb{B}^3$

k = 3
BL = mn.tl.lattice_B(k)
mn.pl.lattice(BL)

img

MBFL = mn.tl.lattice_MBF(k)
mn.pl.lattice(MBFL)

img