buildRoutingMat | R Documentation |
Build routing matrices for linked star topologies; that is, a set of star-topology networks with links between a subset of routers
buildRoutingMat(nVec, Cmat)
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 |
routing matrix of dimension at least 2*sum(nVec) x sum(nVec^2)
buildStarMat
, which this function depends upon
nVec <- c(3, 3, 3) Cmat <- diag(3) Cmat[1,2] <- Cmat[2,3] <- 1 buildRoutingMat(nVec, Cmat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.