aria-label="anchor" href="#ref-usage"></a></h2>
    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">iterate_kp</span><span class="op">(</span><span class="va">adjm</span>, <span class="va">np</span>, <span class="va">pb</span>, <span class="va">k</span>, <span class="va">p</span><span class="op">)</span></span>
<span></span>
<span><span class="co"># S4 method for class 'matrix,numeric,numeric,numeric,numeric'</span></span>
<span><span class="fu">iterate_kp</span><span class="o