add_edge: Add an edge to a graph builder

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

add_edgeR Documentation

Add an edge to a graph builder

Description

Adds an edge from one node to another in a a directed graph builder.

Usage

add_edge(graph_builder, from, to)

Arguments

graph_builder

A graph builder_object

from

The from node.

to

The to node.

Value

The updated graph builder object

See Also

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

Examples

graph_builder() |>
  add_edge("A", "B")

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