#' Motif count
#' @description Count the motifs in a competitive network
#' @name motif_count
#' @param network igraph object
#' @return a vector of seven motifs
motif_count <- function(network) {
tt <- triad_census(network)[c(10, 9, 12, 14, 13, 15, 16)]
return(tt)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.