Nothing
huXuID <- function(g, deg=NULL) {
if (class(g)[1] != "graphNEL")
stop("'g' has to be a 'graphNEL' object")
stopifnot(.validateGraph(g))
if (is.null(deg))
deg <- graph::degree(g)
n <- nodes(g)
nd <- .nodeDataVector(g, "atom->number")
e <- edges(g)
ed <- .edgeDataMatrix(g, "bond")
deg[deg == 0] <- 0.5
Z <- sapply(n, function(v) as.integer(nd[[v]]))
hxdeg <- deg * sqrt(Z)
weightfunc <- function(i, from, to) {
sqrt(
(as.numeric(ed[[from, to]]) / (i + 1)) *
(1 / (hxdeg[[from]] * hxdeg[[to]]))
)
}
AID <- sapply(n, function(v) .weightedPathSum(e, v, weightfunc, unit=0, rmdupls=FALSE))
sum(AID ^ 2)
}
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.