title: How to extract a network neighbourhood in Netlogo
body: <p>I would like to count the number of links in an agent's (undirected) network neighbourhood. This is the links among an agent and all of the agents that it is linked with. (So if I have two friends who don't know each other it would output 2 links; if they do know each other it would output 3.) In igraph I would use <a href="http://igraph.org/r/doc/ego.html" rel="nofollow noreferrer">make_ego_graph</a>.</p>
  
  <p>Anyone know how to achieve this in NetLogo?</p>