edge_rel {DiagrammeR} | R Documentation |
From a graph object of class dgr_graph
, query an edge
in the graph (defined by a pair of node IDs extant in the graph) and perform
operations on the relationship for that edge.
edge_rel(graph, from, to, action = "read", value = NULL)
graph |
a graph object of class |
from |
a node ID from which the edge to be queried is outgoing. |
to |
a node ID to which the edge to be queried is incoming. |
action |
the operation to perform on the edge's relationship attribute.
To remove a relationship from an edge, use either |
value |
a string denoting the relationship, to be supplied when either adding or updating an edge relationship. |
a graph object of class dgr_graph
.