add_ties: Add temporal ties

View source: R/ties.R

add_tiesR Documentation

Add temporal ties

Description

Add temporal ties

Usage

add_ties(dn, data, loops = FALSE)

Arguments

dn

A temporal network from dynet().

data

A nonempty data frame with from, to, start, and end. Optional columns are weight, session, onset_censored, and terminus_censored. Endpoints must already exist in dn.

loops

Whether added self-loops are permitted. FALSE, the default, raises a condition of class dynet_loop_not_allowed.

Details

Added times use the existing network clock. A sessioned network requires an existing session label on every row; mutation does not create a new session scheme. Implicit observation support expands to include the new raw ties, while explicit observation support remains fixed. Added raw rows are interval-format tie identities even when the source was originally a contact, threaded, or co-presence log.

Value

A new dynet object, of the same class and structure as the input. The input is unchanged; canonical temporal ties and every flattened cograph field are rebuilt together.

Examples

dn <- dynet(data.frame(
  from = "A", to = "B", start = 0, end = 1
))
dn <- add_nodes(dn, "C")
add_ties(dn, data.frame(from = "B", to = "C", start = 1, end = 2))

Dynet documentation built on Oct. 7, 2026, 5:08 p.m.