nodes: Get the nodes in the graph

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

nodesR Documentation

Get the nodes in the graph

Description

Returns the unique nodes in the graph

Usage

nodes(graph, ...)

Arguments

graph

A directed or directed acyclic graph

...

Reserved for later use

Value

A character vector with the nodes

Examples

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

nodes(graph)

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

Related to nodes in orbweaver...