class FPGrowth {

    protected FPTree constructTree(List<Set<Integer>> transactions, int supportCount) {
        FPTree fp = new FPTree();
        fp.insertFrequentItems(transactions, supportCount);
        fp.insertTransactions(transactions);
        return fp;
    }

}