add_n_nodes_to_selection {DiagrammeR} | R Documentation |
Add n new nodes to one or more nodes available in a graph
object of class dgr_graph
, with edges moving to the nodes in
the selection from the newly created nodes. Optionally, set node
type
and edge rel
values for the new nodes and edges.
add_n_nodes_to_selection(graph, n, set_node_type = NULL, set_edge_rel = NULL)
graph |
a graph object of class |
n |
the number of new nodes to attach as predecessor nodes to the nodes in the selection. |
set_node_type |
an optional string to apply a |
set_edge_rel |
an optional string to apply a |
a graph object of class dgr_graph
.