node_type {DiagrammeR} | R Documentation |
From a graph object of class dgr_graph
, query a node in
the graph (using the node ID) and perform operations on the type definition
for that node.
node_type(graph, node, action = "read", value = NULL)
graph |
a graph object of class |
node |
a node ID corresponding to the node to be selected. |
action |
the operation to perform on the node's type attribute. To
remove the type definition from a node, use either |
value |
a string denoting the node type, to be supplied when either adding or updating a node type definition. |
a graph object of class dgr_graph
.