public static void Main() { var itemSets = ReadItemSets(); var apriori = new Apriori <string>(itemSets, Support, 0.1); var mostFrequentSet = apriori .GetFrequentItemSets() .OrderByDescending(x => x.Size) .FirstOrDefault(); if (mostFrequentSet != null) { Console.WriteLine(mostFrequentSet); } Console.WriteLine("Execution finished"); Console.ReadKey(); }