| projection | R Documentation |
projection() discretises a temporal network into snapshot slices and
connects each vertex state to its realisation in the next slice. Within a
slice it uses the same independently aggregated, endpoint-induced snapshot
as snapshots(). Identity arcs always point forward and carry the coupling
weight omega. The result is a tidy projection object rather than a bare
matrix.
projection(
dn,
sessions = c("bounded", "collapse", "separate"),
start = NULL,
end = NULL,
step = NULL,
window = NULL,
omega = 1
)
dn |
A temporal network from |
sessions |
Session handling: |
start, end |
First and last slice times. Defaults to observed support. |
step |
Spacing between slice starts. |
window |
Width represented by each slice. |
omega |
Weight on the identity arcs that carry a vertex from one slice
to the next, that is, the interlayer coupling of the time-expanded
network. One, the default, keeps an identity arc as heavy as a unit
contact; zero leaves the slices uncoupled. Must be a single finite
non-negative number, or a |
Every fixed-universe vertex receives one state in every emitted slice.
active records whether the vertex was eligible in that slice. Identity
arcs are retained through inactive slices because Dynet permits waiting
through vertex inactivity; inactive states have no incident
endpoint-induced within-slice edge. Consecutive observed slices are also
linked across an observation gap, matching Dynet's calendar-time waiting
convention.
Directed source edges produce one within-slice arc. An undirected nonloop
edge produces reciprocal arcs, while an undirected loop is emitted once.
Parallel active spells are one within-slice pair whose weight is their
summed weight and whose n_spells records their count. Identity arcs have
weight = omega and n_spells = 0, and meta$identity_weight reports the
same value.
An object of class dynet_projection. Use
as.data.frame(x, what = "vertices") for vertex states and
as.data.frame(x, what = "edges") for directed projected arcs.
Bender-deMoll, S., & Moody, J. timeProjectedNetwork() in the tsna
package, version 0.3.6.
Butts, C. T., Leslie-Cook, A., Krivitsky, P. N., & Bender-deMoll, S. (2024). networkDynamic: Dynamic Extensions for Network Objects, version 0.11.5. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.32614/CRAN.package.networkDynamic")}
dn <- dynet(data.frame(
from = c("A", "B", "C"), to = c("B", "C", "A"),
start = 0:2, end = 1:3
), observation_start = 0, observation_end = 3)
projected <- projection(dn, step = 1, window = 1)
as.data.frame(projected, what = "vertices")
as.data.frame(projected, what = "edges")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.