adjacent: Adjacent vertices.

Description Usage Arguments Examples

View source: R/simplex_tree.R

Description

Returns a vector of vertex ids that are immediately adjacent to a given vertex.

Usage

1
adjacent(st, vertices)

Arguments

st

a simplex tree.

vertices

vertex ids.

Examples

1
2
3
st <- simplex_tree(1:3)
st %>% adjacent(2) 
# 1 3

simplextree documentation built on Sept. 13, 2020, 5:06 p.m.