nd.nfd function

Network Flow Distance

Network Flow Distance

nd.nfd( A, order = 0, out.dist = TRUE, vect = seq(from = 0, to = 10, length.out = 1000) )

Arguments

  • A: a list of length NN 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 tt whose values will be used.

Returns

a named list containing

  • D: an (N×N)(N\times N) matrix or dist object containing pairwise distance measures.

Examples

## 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)
  • Maintainer: Kisung You
  • License: MIT + file LICENSE
  • Last published: 2021-08-21

Useful links