powered by
This function computes features for each network using graph theoretic constructs.
compute_features(gr, attributes = FALSE, attr_name = NULL, fast = FALSE)
A network features object containing 20 graph-theoretic features.
The network or graph as an igraph object.
igraph
If the network nodes/vertices have attributes, then attributes = TRUE.
attributes = TRUE
The name of the node/vertex attribute. Only a single attribute can be specified.
If set to TRUE will avoid computing time consuming features.
TRUE
set.seed(1) gr <- igraph::erdos.renyi.game(100, 0.05) compute_features(gr)
Run the code above in your browser using DataLab