Learn R Programming

DiagrammeR (version 0.8.1)

trav_out: Traverse outward from a selected node, skipping over edges, and creating a new node selection

Description

From a graph object of class dgr_graph move outward from one or more nodes present in a selection to other nodes, replacing the current nodes in the selection with those nodes traversed to.

Usage

trav_out(graph, node_attr = NULL, match = NULL)

Arguments

graph
a graph object of class dgr_graph that is created using create_graph.
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 (>, <, ==, or !=) followed by a number for numerical filtering, or, a character string for filtering the edges returned through string

Value

  • a graph object of class dgr_graph.