Learn R Programming

tsna (version 0.1.3)

reachable: Find the set of vertices reachable from a given set using only paths moving forward in time

Description

Does a breadth-first search from the specified set of vertices, respecting the direction and timing of edges. TODO: vertex activity.

Usage

forward.reachable(nd, v, start = NULL, end = NULL, per.step.depth = Inf)

Arguments

nd
a network (usually a networkDynamic) object
v
numeric vector giving the set of initial vertex.ids to start from
start
The beginning of the time range to start from
end
End of the time range to search to
per.step.depth
How many steps (default=1) to search per unit of time.

Value

  • A numeric vector of vertex.ids reachable from the initial set of vertex.id by `traveling' forward in time along active vertices and edges subject to bounding paramters.

Details

The default value of per.step.depth=Inf is equivilent to assuming that the `process' takes no time to travel along vertices

See Also

See also tPath for a dramatically faster implementation