populate_edges | R Documentation |
data.frame
Adds a set of edges from a data.frame
to a graph
populate_edges(graph_builder, edges_df, parent_col, child_col)
graph_builder |
A graph builder object |
edges_df |
A |
parent_col |
The name of the column containing the parents |
child_col |
The name of the column containing the children |
The updated graph builder object
Other build graphs:
add_edge()
,
add_path()
,
build_acyclic()
,
build_directed()
,
graph_builder()
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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.