ade4 (version 1.7-22)

dist.neig: Computation of the Distance Matrix associated to a Neighbouring Graph

Description

This distance matrix between two points is the length of the shortest path between these points.

Usage

dist.neig(neig)

Value

returns a distance matrix, object of class dist

Arguments

neig

a neighbouring graph, object of class neig

Author

Daniel Chessel
Stéphane Dray stephane.dray@univ-lyon1.fr

Examples

Run this code
    data(elec88)
    d0 <- dist.neig(elec88$neig)
    plot(dist(elec88$xy),d0)

Run the code above in your browser using DataLab