title: How to measure the % of loops in a network in R?
body: <p>I am calculating some measures of a group of networks and got stuck when trying to calculate the percentage of &quot;loops&quot; in my networks. This is not a question about &quot;for-loops&quot;/&quot;while-loops&quot;/&quot;repeat-loops&quot;, but on how much a node feeds into itself, trying to understand how closed it is to external nodes, if that makes sense :)</p>
  <p>Loving some input. Thanks!
  A</p>