Learn R Programming

tsna (version 0.3.5)

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

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

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

Arguments

x

A tPath list with several elements, the output of a path search.

...

possible additional arguments

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.

Details

Attributes of original network are not copied

See Also

See also paths.

Examples

Run this code
# NOT RUN {
  data(moodyContactSim)
  v1path<-tPath(moodyContactSim,v=1)
  v1tree<-as.network(v1path)
  plot(v1tree,displaylabels=TRUE)
# }

Run the code above in your browser using DataLab