View source: R/shortesttimepath.R
shortesttimepath | R Documentation |
-
shortesttimepath(g, startvertexname, startvertextime, stopvertexname)
g |
The time-ordered network on which to find paths. |
startvertexname |
The name of the start vertex. |
startvertextime |
The time of the start vertex. Must be a time at which an interaction has occurred involving this vertex. |
stopvertexname |
The name of the stop vertex. |
A vertex list containing all the events on the shortest-time path between the start vertex at the start time and the stop vertex at a later time.
May generate warning messages - don't worry!
Benjamin Blonder bblonder@email.arizona.edu.
shortesthoppath
data(ants)
allindivs <- c(union(as.character(ants$VertexFrom), as.character(ants$VertexTo)), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
stp <- shortesttimepath(g, "WBGG", 927, "Q")
plottonet(g, stp)
title(paste(diff(range(stp$Time)), "time elapsed"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.