add_path: Add a path to a graph

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

add_pathR Documentation

Add a path to a graph

Description

Adds all of the edges that make up the given path to the graph.

Usage

add_path(graph_builder, path)

Arguments

graph_builder

A graph builder_object

path

A character vector that describes the path

Value

The updated graph builder object

See Also

Other build graphs: add_edge(), build_acyclic(), build_directed(), graph_builder(), populate_edges()

Examples

graph_builder() |>
  add_path(c("A", "B", "C"))

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