buildStarMat: Build routing matrix for star network topology

Description Usage Arguments Value Examples

View source: R/lib.R

Description

Build routing matrix for star network topology

Usage

1

Arguments

n

integer number of nodes in the network

Value

matrix of dimension 2n x n^2 that transforms OD flows to link loads

Examples

1

Example output

     [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
[1,]    1    1    1    0    0    0    0    0    0
[2,]    0    0    0    1    1    1    0    0    0
[3,]    0    0    0    0    0    0    1    1    1
[4,]    1    0    0    1    0    0    1    0    0
[5,]    0    1    0    0    1    0    0    1    0
[6,]    0    0    1    0    0    1    0    0    1

networkTomography documentation built on May 29, 2017, 4:56 p.m.