9.3 Number of edges
Number of edges
<- lapply(ego_nets_simple, ecount)
network_edge_counts <- unlist(network_edge_counts)
network_edge_counts hist(network_edge_counts, main = "Histogram of Ego Network Edge Counts", xlab = "# of Edges")
<- ego_nets_simple[[1]]
random_ego_net ecount(random_ego_net)/((vcount(random_ego_net) * (vcount(random_ego_net) - 1))/2)
## [1] 0.8333333