make_dag: Convert abstract syntax tree to directed acyclic graph

View source: R/make_dag.R

make_dagR Documentation

Convert abstract syntax tree to directed acyclic graph

Description

Convert abstract syntax tree to directed acyclic graph

Usage

make_dag(x)

Arguments

x

Abstract syntax tree from infer_ast()

Examples

ast <- infer_ast("cos(2*x1 + x2)")
g <- make_dag(ast)
g

if (interactive()) {
  plot(g)
}


mikldk/taldi documentation built on March 26, 2022, 1:47 a.m.