| add_arcs | R Documentation |
The same operation as add_ties(), with one extra guarantee: the network
must already be directed, so from and to keep the direction the caller
means. Adding an arc to an undirected network raises a condition of class
dynet_needs_directed rather than silently recording a symmetric tie.
add_arcs(dn, data, loops = FALSE)
dn |
A temporal network from |
data |
A nonempty data frame with |
loops |
Whether added self-loops are permitted. |
A new directed dynet object carrying the added spells, with the
same structure as the input.
add_ties(), which does not require a directed network.
dn <- dynet(data.frame(from = "A", to = "B", start = 0, end = 1))
dn <- add_nodes(dn, "C")
add_arcs(dn, data.frame(from = "B", to = "C", start = 1, end = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.