Count number of unique edges in time interval

count_unique_edges_in_interval(
  x,
  start = NULL,
  end = NULL,
  number = 30,
  directed = network::is.directed(x)
)

Arguments

x

object of class networkDynamic

start

start time for the calculation

end

end time for the calculation

number

number of intervals in between start and end

directed

logical, should the graph be treated as directed? Defaults to the value of directed encoded inside x itself.

Value

vector with counts

Details

Counts how many edges happen (ie. have their start within an interval) over the time period (start, end). The toime period is split into number intervals, each of equal time length. So, if start = 0, end = 10, and number = 2, then the time period is divided into the time intervals from 0 (inclusive) to 5 (exclusive) and from 5 (inclusive) to 10 (exclusive).

count_edges_in_interval counts the number of edges that start in each interval.

count_unique_edges_in_interval counts the number of unique edges that start in each interval, so edges that occur multiple times are only counted once.