;&quot;&quot;</span>
<span class="sd">        Determine classes of functional groups present in a set.</span>

<span class="sd">        :param groups: Set of functional groups.</span>
<span class="sd">        :return: dict containing representations of the groups, the indices of</span>
<span class="sd">            where the group occurs in the MoleculeGraph, and how many of each</span>
<span class="sd">            type of group there is.</span>
<span class="sd">        &quot;&quot;&quot;</span>

        <sp