class="op">[</span><span class="va">.x</span><span class="op">]</span><span class="op">)</span> <span class="op">%&gt;%</span>
        <span class="co">#The nodes in all the networks are numbered 1:40, this line ensures</span>
        <span class="co">#each class has distinct node names</span>
        <span class="fu"><a href="https://rdrr.io/pkg/igraph/man/set_vertex_attr.html">set.vertex.attribute</a></span><span class="op">(</span><span class="va">.</span>, <span class="st">"type"</span>, value <span cla