Abort R session when calculating betweenness/closeness centrality

Please show a complete reproducible example (including the offending data file).

If there are NA or NaN values in your data, be sure to get rid of them. igraph cannot usually handle them.

1 Like