n class="n">_Patterns</span> <span class="o">=</span> <span class="n">_ap</span><span class="o">.</span><span class="n">getPatterns</span><span class="p">()</span>
        <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Total number of top-k periodic frequent patterns:&quot;</span><span class="p">,</span> <span class="nb">len</span><span class="p">(</span><span class="n">_Patterns</span><span class="p">))</span>
        <span class="n">_ap</span><span class="o">.</span><span clas