Learn R Programming

NetworkDistance (version 0.3.6)

nd.edd: Edge Difference Distance

Description

It is of the most simplest form that Edge Difference Distance (EDD) takestwo adjacency matrices and takes Frobenius norm of their differnces.

Usage

nd.edd(A, out.dist = TRUE)

Value

a named list containing

D

an \((N\times N)\) matrix or dist object containing pairwise distance measures.

Arguments

A

a list of length \(N\) containing \((M\times M)\) adjacency matrices.

out.dist

a logical; TRUE for computed distance matrix as a dist object.

References

hammond_graph_2013NetworkDistance

Examples

Run this code
## load example data
data(graph20)

## compute distance matrix
output = nd.edd(graph20, out.dist=FALSE)

## visualize
opar <- par(no.readonly=TRUE)
par(pty="s")
image(output$D[,20:1], main="two group case", axes=FALSE, col=gray(0:32/32))
par(opar)

Run the code above in your browser using DataLab