networkDynamic class objects (extensions of network objects) whose vertex and edge elements include timing information. This page describes the types of timing information currently available, and the general syntax for setting or querying this information.at=, onset=, terminus= and length=. Any numeric values may be used in the interval specifications, including Inf and -Inf, (with some restrictions, see below). A spell with onset=-Inf represents onset censoring. A spell with terminus=Inf represents terminus censoring. Inf and -Inf cannot be used with the at specification. Similarly, onset can not be Inf and terminus can not be {-Inf}.
The general syntax rules for specifying spells are as follows:
To specify a spell as a single time point:
atargument, oronset=terminus.onset, terminus and length is required:
onsetandterminusonsetandlengthterminusandlengthdeactivate function (see activity.attribute) and by convention are stored as c(Inf,Inf). Although it is possible to access and modify the activity spells using network attribute methods (e.g., get.edge.attribute) it is not recommended, and extreme care should be taken to preserve the structure of the spell matrix. The preferred way to modify the spells of a network element is with the activate related methods. Vertices and edges with specific activity ranges can be selected using network.extensions.
In addition, a number of special functions are also provided to simplify common tasks related to the active attribute (noted below).
is.active, activate, activate.vertices,activate.edges, deactivate.vertices,deactivate.edges,network.extensionstriangle <- network.initialize(3) # create a toy network
activate.vertices(triangle,onset=1,terminus=5,v=1)
activate.vertices(triangle,onset=1,terminus=10,v=2)
activate.vertices(triangle,onset=4,terminus=10,v=3)
deactivate.vertices(triangle,onset=2, length=2, v=1)
get.vertex.activity(triangle) # vertex spellsRun the code above in your browser using DataLab