class ResultLattice {

    public boolean insert(Result node) {
        if (valid(node)) {
            int l = node.getEmbeddedFD().lhs.cardinality();
            if (! layers.containsKey(l)) {
                layers.put(l, new LinkedList<Result>());
            }
            if (!layers.get(l).contains(node)) {
                layers.get(l).add(node);
            }
            return true;
        }
        return false;
    }

    public  ResultLattice(int rhs);
    public  ResultLattice(Result root);

}