R/aggregator.R

Defines functions aggregator

Documented in aggregator

#' Cartesian product of two ralgets
#'
#' @param x ralget graph
#' @param y ralget graph
#' @export

aggregator <-  function(edges){
 # browser() 
  
 remaing_edges <- edges %>% keep(~ !is.null(.)) 
 
 if(length(remaing_edges) == 0){return(list(NULL))}
 
 list(remaing_edges %>% reduce(`+`) )
}
ianmoran11/ralget documentation built on Oct. 12, 2023, 12:19 a.m.