children: Get the children on a node

View source: R/children.R View source: R/extendr-wrappers.R View source: R/extendr-wrappers.R

childrenR Documentation

Get the children on a node

Description

Get a list of the node ids of the children of the provided node.

Usage

children(graph, nodes)

Arguments

graph

A graph object

nodes

A character vector of nodes to find children for

Value

A character vector

Examples

graph <- graph_builder() |>
  add_edge(from = "A", to = "B") |>
  build_directed()

graph |> children("A")

orbweaver documentation built on June 8, 2025, 11:40 a.m.