get_Adj: Get adjacency list of a tree.

View source: R/MullerPlot.R

get_AdjR Documentation

Get adjacency list of a tree.

Description

Get adjacency list of a tree.

Usage

get_Adj(tree)

Arguments

tree

Dataframe comprising an adjacency matrix, with column names "Parent" and "Identity"

Value

The adjacency list.

Author(s)

Rob Noble, robjohnnoble@gmail.com

Examples

tree1 <- data.frame(Parent = c(1,1,1,1,2,3,4), 
                    Identity = 1:7, 
                    Population = c(1, rep(5, 6)))
get_Adj(tree1)


ggmuller documentation built on Jan. 15, 2026, 5:07 p.m.