select_nodes_by_degree {DiagrammeR} | R Documentation |
From a graph object of class dgr_graph
, get a
vector of node ID values from nodes available in a selection.
select_nodes_by_degree(graph, degree_type, degree_values, node_attr = NULL, search = NULL, set_op = "union", nodes = NULL)
graph |
a graph object of class |
degree_type |
the type of degree, either: |
degree_values |
a logical expression with a comparison
operator ( |
node_attr |
an optional character vector of node attribute values for filtering the node ID values 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 nodes. This can either be as a |
nodes |
an optional vector of node IDs for filtering list of nodes present in the graph. |
a graph object of class dgr_graph
.