50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


ggenealogy (version 0.2.0)

getDegree: Determine the degree between two varieties

Description

Returns the degree (distance between unweighted edges) between two varieties, where an edge represents a parent-child relationship

Usage

getDegree(v1, v2, ig, geneal)

Arguments

v1
the label of the first variety/vertex of interest (in character string format)
v2
the label of the second variety/vertex of interest (in character string format)
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)
getDegree("Brim", "Bedford", ig, sbGeneal)

Run the code above in your browser using DataLab