as.network.tPath {tsna} | R Documentation |
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 class 'tPath'
as.network(x, ...)
Arguments
x |
A |
... |
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
data(moodyContactSim)
v1path<-tPath(moodyContactSim,v=1)
v1tree<-as.network(v1path)
plot(v1tree,displaylabels=TRUE)
[Package tsna version 0.3.5 Index]