Network Flow Distance
nd.nfd( A, order = 0, out.dist = TRUE, vect = seq(from = 0, to = 10, length.out = 1000) )
A
: a list of length containing adjacency matrices.order
: the order of Laplacian; currently only 0 and 1 are supported.out.dist
: a logical; TRUE
for computed distance matrix as a dist
object.vect
: a vector of parameters whose values will be used.a named list containing
dist
object containing pairwise distance measures.## Not run: ## load example data data(graph20) # compute two diffusion-based distances and visualize out1 = nd.gdd(graph20, out.dist=FALSE) out2 = nd.nfd(graph20, out.dist=FALSE) # visualize opar <- par(no.readonly=TRUE) par(mfrow=c(1,2), pty="s") image(out1$D[,20:1],col=gray((0:32)/32), main="nd.gdd",axes=FALSE) image(out2$D[,20:1],col=gray((0:32)/32), main="nd.nfd",axes=FALSE) par(opar) ## End(Not run)
Useful links