Learn R Programming

ggenealogy (version 0.2.0)

getEdges: 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)

Examples

Run this code
data(sbGeneal)
ig <- dfToIG(sbGeneal)
getEdges(ig, sbGeneal)

Run the code above in your browser using DataLab