powered by
This function performs a breadth-first search on the simplicial complex, checking if the complex is acyclic.
is_tree(st)
a simplex tree.
# NOT RUN { st <- simplex_tree() st %>% insert(list(1:2, 2:3)) st %>% is_tree() # true st %>% insert(c(1, 3)) st %>% is_tree() # false # }
Run the code above in your browser using DataLab