trav_both {DiagrammeR} | R Documentation |
From a graph object of class dgr_graph
move toward both
predecessor and successor nodes from one or more nodes present in a
selection. The current nodes in the selection are replaced with those nodes
traversed to.
trav_both(graph, node_attr = NULL, match = NULL)
graph |
a graph object of class |
node_attr |
an optional character vector of node attribute values for filtering the node ID values returned. |
match |
an option to provide a logical expression with a comparison
operator ( |
a graph object of class dgr_graph
.