get.edgeIDs.at {dynamicnetwork} | R Documentation |
gets the ids of edges in the passed network (or vertex neighborhood) that are active at the appropriate specified time.
get.edgeIDs.at(dyn, time.point, v, alter = NULL, neighborhood = c("out", "in", "combined"), na.omit = TRUE)
dyn |
dynamicnetwork to search for edges |
time.point |
the time point of interest |
v |
optional vertex id for neighborhood |
alter |
optional second vertex |
neighborhood |
type of ngh to search (if netowrk is directed) |
na.omit |
should na edges be skipped? |
This function is an adaptation of the get.edgeIDs function for dynamic networks.
For get.edgeIDs.at
, it returnes ids of edges that have
have intervals with start < time.point and end >= time.point. For get.edgeIDs.before
a list of edge ids active at the specified time and in the appropriate neighborhood
skyebend@skyeome.net
get.edgeIDs.before
,get.slice.network
#make a silly 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); # see all edge edges that include vertex 1 get.edgeIDs(dyn,v=1) #should be 4 3 2 1 #plot the intervals plot.intervals(dyn); #notice edgeid 1 goes from -1 to 0 #get the edge active at time 1 get.edgeIDs.at(dyn,v=1,time.point=1);# should be id 2