select_edges {DiagrammeR} | R Documentation |
Select edges from a graph object of class dgr_graph
.
select_edges(graph, edge_attr = NULL, search = NULL, set_op = "union", from = NULL, to = NULL)
graph |
a graph object of class |
edge_attr |
an optional character vector of edge attribute values for filtering the edges returned. |
search |
an option to provide a logical expression with a comparison
operator ( |
set_op |
the set operation to perform upon consecutive selections
of graph edges This can either be as a |
from |
an optional vector of node IDs from which the edge is outgoing for filtering the list of edges present in the graph. |
to |
an optional vector of node IDs to which the edge is incoming for filtering the list of edges present in the graph. |
a graph object of class dgr_graph
.