def build_lattice(self, x):
        """ Construct the list of nodes and edges for input features. """
        I, J, _ = x.shape
        lattice = self._subset_independent_lattice((I, J))
        return lattice