powered by
This helper function prints or returns multiple metrics of arbitrary iGraph graph object.
graph_metrics(graph, verbose = TRUE, return = FALSE)
iGraph object to analyze.
If TRUE graph information is printed.
If TRUE graph information is returned from function.
Named list of metrics including vertex count, edge count, number of components, size of largest component and the relative frequency of zero degree vertices.
# NOT RUN { adj_mat <- matrix(rnorm(36),nrow=6) graph <- igraph::graph_from_adjacency_matrix(adj_mat) graph_metrics(graph, verbose = TRUE, return = FALSE) # }
Run the code above in your browser using DataLab