Learn R Programming

simplextree (version 1.0.1)

adjacent: Adjacent vertices.

Description

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

Usage

adjacent(st, vertices)

Arguments

st

a simplex tree.

vertices

vertex ids.

Examples

Run this code
# NOT RUN {
st <- simplex_tree(1:3)
st %>% adjacent(2) 
# 1 3
# }

Run the code above in your browser using DataLab