Remove nodes from a temporal network
Arguments
- dn
A temporal network from
dynet().- nodes
Character node names.
- cascade
Whether to remove every incident temporal tie and vertex activity spell. The safe default,
FALSE, rejects nodes that are not isolates with a condition of classdynet_node_not_isolate.
Value
A new internally consistent dynet object, of the same class and
structure as the input, without the named vertices and – under
cascade = TRUE – without their ties and vertex-activity spells. At
least one temporal tie must remain.
Examples
dn <- dynet(data.frame(from = "A", to = "B", start = 0, end = 1))
dn <- add_nodes(dn, "C")
remove_nodes(dn, "C")
#> # Temporal network (interval format, directed) | a cograph netobject
#> # 2 vertices | 1 edge spells | 1 distinct pairs
#> # observed from 0 to 1 step, binned every 1
#>
#> from to start end duration weight
#> A B 0 1 1 1