Here a list of the most important functions for network descriptives in R network and iGraph package is provided. The table below shows the equivalent functions in both packages.
Function in R network package | Equivalent in R iGraph package | Description |
---|---|---|
plot() |
plot() |
Visualize the network |
network.size() |
vcount() |
Get the number of nodes (vertices) in the network |
gden() |
graph.density() or edge_density() |
Calculate the network density |
largest.component() then geodist() and max() |
diameter() |
Calculate the network diameter |
gtrans() |
transitivity() |
Calculate the clustering coefficient |