graph_from_bin: Read the graph from a binary blob

View source: R/bin.R

graph_from_binR Documentation

Read the graph from a binary blob

Description

Read the graph from a binary blob

Usage

graph_from_bin(path, bin, type = c("directed", "dag"))

Arguments

path

(Optional) Path to a file containing a graph binary

bin

(Optional) The raw binary of the graph

type

The type of graph the JSON represents

Value

A graph object

See Also

Other graphs i/o: graph_to_bin()

Examples

bin <- graph_builder() |>
  add_edge("A", "B") |>
  build_directed() |>
  graph_to_bin()
bin

graph_from_bin(bin = bin)

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