Learn R Programming

networkTomography (version 0.3)

buildRoutingMat: 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

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

Run the code above in your browser using DataLab