Adds a set of edges from a data.frame to a graph
See also
Other build graphs:
add_edge(),
add_path(),
build_acyclic(),
build_directed(),
graph_builder()
Examples
graph_edges <- data.frame(
parent = c("A", "B", "C"),
child = c("B", "C", "D")
)
graph_builder() |>
populate_edges(
edges_df = graph_edges,
parent_col = "parent",
child_col = "child"
)
#> <pointer: 0x5624ab9f7ba0>
#> attr(,"class")
#> [1] "DirectedGraphBuilder"