Learn R Programming

MetaLandSim (version 0.2)

min_distance: Calculate topological distance

Description

Function to compute topological distance between patches. Topological distance is defined as the minimum number of links between any two patches.

Usage

min_distance(rl)

Arguments

rl
Object of class 'landscape'.

Value

  • Returns a matrix with the topological distance between the nodes.

See Also

rland.graph

Examples

Run this code
data(rland)

min_distance(rl=rland)

Run the code above in your browser using DataLab