get.spells.for {dynamicnetwork} | R Documentation |
returns a matrix giving the starting and ending times of all edges associated with the given vertex or vertex pair.
get.spells.for(net, v, alter = NULL, neighborhood = c("out", "in", "combined"), na.omit = TRUE)
net |
a dynamicnetwork object |
v |
id number of the vertex of interest |
alter |
optional id of additional vertex |
neighborhood |
how the neighborhood should be defined if network is directed |
na.omit |
should na edges be skipped? |
a two column matrix (in which the first column is the start and second column is the end) of the valid intervals corresponding to edges in the specified neighborhood.
skyebend@skyeome.net
#make a toy network dyn <- as.dynamic(network.initialize(5)); dyn <- add.edge.dynamic(dyn,0,1,2); dyn <- add.edge.dynamic(dyn,1,1,3); dyn <- add.edge.dynamic(dyn,2,1,4); dyn <- add.edge.dynamic(dyn,3,1,5); #get the valid intervals for any edges between 1 and 3 get.spells.for(dyn,v=1,alter=3); #get the valid intervals for any edges invloving vertex 1 get.spells.for(dyn,v=1);