add_nodes: Add nodes to a temporal network

View source: R/ties.R

add_nodesR Documentation

Add nodes to a temporal network

Description

Add nodes to a temporal network

Usage

add_nodes(dn, data)

Arguments

dn

A temporal network from dynet().

data

A character vector of new node names or a data frame containing a name column and optional static attributes.

Details

Existing nodes and attributes are unchanged. Missing attribute values are filled with typed NA. If the source has a cograph grouping, each new node must supply its group through a groups column in data or through the source attribute from which that grouping was derived; otherwise a condition of class dynet_missing_group is raised.

Value

A new dynet object, of the same class and structure as the input, with the added nodes represented as implicit always-active isolates until ties or vertex activity are supplied. The input is unchanged.

Examples

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

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