Provides access to the edges
element of a
sem_graph
object. This can be used to return or assign to the
edges
element.
edges(x)
edges(x) <- value
Object of class sem_graph.
A valid value for edges(x)
.
data.frame
edg <- data.frame(from = "x", to = "y")
p <- prepare_graph(edges = edg, layout = get_layout("x", "y", rows = 1))
edges(p)
#> from to label arrow curvature connect_from connect_to show
#> 1 x y last NA right left TRUE