parents: Get the parents on a node

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

parentsR Documentation

Get the parents on a node

Description

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

Usage

parents(graph, nodes)

Arguments

graph

A graph object

nodes

A character vector of nodes to find parents for

Value

A character vector

Examples

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

graph |> parents("A")
graph |> parents("B")

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

Related to parents in orbweaver...