Nothing
## igraph
validate_igraph <- function(g, checkdir = TRUE){
if (checkdir & igraph::is_directed(g))
stop("Directed graphs are not supported")
if (!igraph::is_connected(g, mode = "strong"))
stop("Disconnected graphs are not supported")
}
## distance matrix
validate_matrix <- function(g, eta, checkdir = TRUE){
if (checkdir & !isSymmetric.matrix(g))
stop("Distance matrix is non-symmetric")
if(any(is.infinite(g)))
stop("Disconnected graphs are not supported")
if(length(eta) != ncol(g))
stop("Length of eta differs from the number of vertices")
if(any(eta < 0))
stop("Entries of eta must be non-negative")
if(sum(eta) <= 0)
stop("sum(eta) must be positive")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.