Skip to contents

Graph operations

Usage

qd_set_node_attrs(graph_obj, ..., alpha_ids)

qd_set_edge_attrs(graph_obj, ..., from_alpha = NULL, to_alpha = NULL)

select_nodes_by_alpha_id(graph_obj, alpha_ids, set_op = "union")

qd_select_nodes(graph_obj, alpha_ids, set_op = "union")

select_edges_by_node_alpha_id(graph_obj, alpha_ids, set_op = "union")

qd_select_edges(graph_obj, alpha_ids, set_op = "union")

Arguments

graph_obj

A quickdag object output by qd_dag() or qd_swig().

...

Passed to DiagrammeR::set_node_attrs() or DiagrammeR::set_edge_attrs() argument node_attr or edge_attr, respectively. DiagrammeR::set_edge_attrs() argument of the same name.

alpha_ids

A vector of alphanumeric node IDs upon which to operate.

from_alpha

A vector of alphanumeric source node IDs.

to_alpha

A vector of alphanumeric destination node IDs.

set_op

Passed to the set_op argument of DiagrammeR::select_nodes_by_id() or DiagrammeR::select_edges_by_node_id(). Defaults to "union".