getDegree: Determine the degree between two varieties

Description Usage Arguments Examples

Description

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

Usage

1
getDegree(v1, v2, ig, tree)

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 tree (in igraph format)

tree

the data tree (in data frame format)

Examples

1
2
3
data(sbTree)
ig = treeToIG(sbTree)
getDegree("Brim","Bedford",ig,sbTree)

dicook/phyViz documentation built on May 15, 2019, 8:24 a.m.