all_link: Print all links of a given roadnet

Description Usage Arguments Value Examples

View source: R/all_link.R

Description

all_link receives a roadnet matrix and print all links with sep '-'.

Usage

1
all_link(roadnet)

Arguments

roadnet

A weighted-adjacent-matrix of a roadnet. Every element represents the length of link identified by 2 points. The rownames and colnames of roadnet matrix should also be given, which is the point index/name.

Value

A charactor vector contains all links in the roadnet.

Examples

1
2
3
4
A = matrix(c(0,2,6,0,2,0,5,7,6,5,0,1,0,7,1,0),nrow=4)
rownames(A) <- 11:14
colnames(A) <- 11:14
all_link(A)

ahorawzy/HVS documentation built on May 29, 2019, 1:52 a.m.