getBasicStatistics | R Documentation |
Returns basic statistics of the graph object (number of nodes, number of edges, whether or not the whole graph is connected, number of components, average path length, graph diameter, etc.)
getBasicStatistics(ig)
ig |
the graph representation of the data genealogy (in igraph format) |
Rutter L, VanderPlas S, Cook D, Graham MA (2019). ggenealogy: An R Package for Visualizing Genealogical Data. Journal of Statistical Software, 89(13), 1–31. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v089.i13")}
data(sbGeneal)
ig <- dfToIG(sbGeneal)
getBasicStatistics(ig)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.