Count the number of nodes in a network.

node_count(.net)

# S3 method for igraph
node_count(.net)

# S3 method for network
node_count(.net)

Arguments

.net

network of class igraph or network.

Value

integer scalar

Examples

node_count(.net = florence_business_ig)
#> [1] 16
florence_business_nw %>% node_count()
#> [1] 16