@Test
public void testFPFromPaper() {

    List<Set<Integer>> txns = new ArrayList<>();
    txns.add(intIfy("f, a, c, d, g, i, m, p"));
    txns.add(intIfy("a, b, c, f, l, m, o"));
    txns.add(intIfy("b, f, h, j, o"));
    txns.add(intIfy("b, c, k, s, p"));
    txns.add(intIfy("a, f, c, e, l, p, m, n"));
    FPGrowth fp = new FPGrowth();
    List<ItemsetWithCount> itemsets = fp.getItemsetsWithSupportRatio(txns, .6);
    //printItemsets(itemsets);
    assertEquals(18, itemsets.size());
}