buildRoutingMat: Build routing matrices for linked star topologies; that is, a...

View source: R/lib.R

buildRoutingMatR Documentation

Build routing matrices for linked star topologies; that is, a set of star-topology networks with links between a subset of routers

Description

Build routing matrices for linked star topologies; that is, a set of star-topology networks with links between a subset of routers

Usage

buildRoutingMat(nVec, Cmat)

Arguments

nVec

integer vector containing number of nodes in each sub-network (length m)

Cmat

matrix (m x m) containing a one for each linked sub-network; only upper triangular part is used

Value

routing matrix of dimension at least 2*sum(nVec) x sum(nVec^2)

See Also

buildStarMat, which this function depends upon

Examples

nVec <- c(3, 3, 3)
Cmat <- diag(3)
Cmat[1,2] <- Cmat[2,3] <- 1
buildRoutingMat(nVec, Cmat)

awblocker/networkTomography documentation built on May 14, 2022, 10:05 p.m.