getEdges {ggenealogy} | R Documentation |
Returns edges (vertex names and edge weights) for the full genealogy
Description
Returns a matrix, where each row contains information about an edge (two vertex names and edge weight, if present) of the full genealogy.
Usage
getEdges(ig, geneal)
Arguments
ig |
the graph representation of the data genealogy (in igraph format) |
geneal |
the full genealogy (in data frame format) |
References
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. doi:10.18637/jss.v089.i13
Examples
data(sbGeneal)
ig <- dfToIG(sbGeneal)
getEdges(ig, sbGeneal)
[Package ggenealogy version 1.0.3 Index]