Calculate natural_connectivity

nc(p)

Arguments

p

an igraph or metanet object

Value

natural_connectivity (numeric)

References

`nc` in `ggClusterNet`

Examples

igraph::make_ring(10) %>% nc()
#> [1] 0.8239938