antics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
like this:</p>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># make_ego_graph returns list, even for node input of length 1</span></span>
<span><span class="va">fam_graph</span> <span class="op">=</span> <span class="fu"><a href="https://r.igraph.org/reference/ego.html" class="external-link">make_ego_graph</a></span><span class="op">(</span>graph