Learn R Programming

ggenealogy (version 0.2.0)

getBasicStatistics: Determine basic statistics of the graph object

Description

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.)

Usage

getBasicStatistics(ig)

Arguments

ig
the graph representation of the data genealogy (in igraph format)

Examples

Run this code
data(sbGeneal)
ig <- dfToIG(sbGeneal)
getBasicStatistics(ig)

Run the code above in your browser using DataLab