Description Usage Arguments Details Examples
This function generates a vector of status after one spread step. It assumes that the input adjacency matrix is composed of 0s and 1s, and that the diagonal is all 1s.
1 | spreadstep(amat, vect1)
|
amat |
the adjacency matrix, composed of 0s and 1s |
vect1 |
status of nodes before spread, in terms of presence or absence of bioentity or information about management (a matrix with nrow=1 and ncol=number of nodes) |
Updated 2020-09-05
1 2 3 4 | x1 <- spreadstep(amat=matrix(c(1,1,0,0,1,1,0,0,1),ncol=3,byrow=T), vect1=matrix(c(1,0,0), ncol=3))
x2 <- spreadstep(amat=matrix(c(1,1,0,0,1,1,0,0,1),ncol=3,byrow=T), vect1=matrix(c(1,0,0), ncol=3))
x3 <- spreadstep(amat=matrix(c(1,1,0,0,1,1,0,0,1),ncol=3,byrow=T), vect1=matrix(c(1,1,0), ncol=3))
x9 <- spreadstep(amat=matrix(c(0,1,0,0,0,0, 0,0,1,0,0,0, 0,0,0,1,0,0, 0,0,0,0,1,0, 0,0,0,0,0,1, 1,0,0,0,0,0),byrow=T,ncol=6), vect1=c(1,1,1,0,0,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.