 <span class="kw">function</span><span class="op">(</span><span class="va">r</span><span class="op">)</span> <span class="fu">igraph</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/pkg/igraph/man/graph_from_adjacency_matrix.html" class="external-link">graph_from_adjacency_matrix</a></span><span class="op">(</span><span class="va">r</span>, mode<span class="op">=</span><span class="st">"undirected"</span>, diag <span class="op">=</span> <span class="cn">FALSE</span><span class="op">