culateLabelsToVertices</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">        This function precalculates and stores mappings of vertex labels to their corresponding vertex IDs.</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">mapLabelToVertexIds</span> <span class="o">=</span> <span class="p">{}</