create_tree: Create a network object from a 'tPath' object - the results...

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

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.

Usage

1
2
  ## 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

Value

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

Note

this is probably not the final form of this function

Author(s)

skyebend

See Also

See also paths.

Examples

1
2
3
4
  data(moodyContactSim)
  v1path<-tPath(moodyContactSim,v=1)
  v1tree<-as.network(v1path)
  plot(v1tree,displaylabels=TRUE)

tsna documentation built on Nov. 1, 2021, 5:06 p.m.