n> <span class="s2">&quot;phenyl&quot;</span><span class="p">]</span>

        <span class="n">results</span> <span class="o">=</span> <span class="p">[]</span>

        <span class="k">if</span> <span class="s2">&quot;methyl&quot;</span> <span class="ow">in</span> <span class="n">func_groups</span><span class="p">:</span>
            <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">carbons</span><span class="p">:</span>
                <span class="n">neighb