Select nodes in a graph by their ID valuesSource:
Select nodes in a graph object of class
dgr_graph by their node ID values.
If nodes have IDs that are monotonically increasing integer values, then
numeric ranges can be used for the selection.
A graph object of class
A vector of node IDs for the selection of nodes present in the graph.
The set operation to perform upon consecutive selections of graph nodes. This can either be as a
union(the default), as an intersection of selections with
intersect, or, as a
differenceon the previous selection, if it exists.