cache.</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">neighborCache</span> <span class="o">=</span> <span class="p">{}</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">edgeCount</span> <span class="o">=</span> <span class="mi">0</span>

        <span class="k">for</span> <span class="n">vertexId</span><span class="p">,</span> <span class="n">vertex</span> <span class="ow">in</span> <span 