create_tree function

Create a network object from a tPath object -- the results of a path search

Create a network object from a tPath object -- the results of a path search

Takes the results of a temporal path search (a tPath) as input and creates a new network object representing the path tree which can be plotted for debugging, etc.

## S3 method for class 'tPath' as.network(x, ...)

Arguments

  • x: A tPath list with several elements, the output of a path search.
  • ...: possible additional arguments

Details

Attributes of original network are not copied

Returns

a directed networkDynamic object representing the path information from the input. Each edge has the onset time indicated by its distance in the path.

Author(s)

skyebend

Note

this is probably not the final form of this function

See Also

See also paths.

Examples

data(moodyContactSim) v1path<-tPath(moodyContactSim,v=1) v1tree<-as.network(v1path) plot(v1tree,displaylabels=TRUE)
  • Maintainer: Skye Bender-deMoll
  • License: GPL-3
  • Last published: 2021-11-01