View source: R/has_children.R View source: R/extendr-wrappers.R View source: R/extendr-wrappers.R
has_children | R Documentation |
This function validates if the node has an edge pointing to any other node.
has_children(graph, nodes)
graph |
A graph object |
nodes |
A character vector of nodes to determine |
A logical vector with the same length as nodes
graph <- graph_builder() |>
add_edge(from = "A", to = "B") |>
build_directed()
graph
graph |> has_children(nodes = "A")
graph |> has_children(nodes = "B")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.