#' Internal function
#'
#' @name resolve.monomulti
#' @author Yusuke Matsui & Teppei Shimamura
#' @export
rootFind <- function(edge){
node <- unique(edge[,1])
ind <- !node%in%edge[,2]
if(sum(ind)==1){
root <- node[ind]
}else{
print("there is not root node")
stop()
}
root
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.