Learn R Programming

PCBN (version 0.1.1)

create_empty_DAG: Create empty DAG

Description

This function creates a directed graph with a total of `N_nodes` nodes and no arcs. The nodes are named `U1`, `U2`, etc.

Usage

create_empty_DAG(N_nodes)

Value

A bnlearn graph object with `N_nodes` nodes and no arcs

Arguments

N_nodes

An integer equal to the number of nodes

See Also

[bnlearn::empty.graph()] which this function wraps.

Examples

Run this code
create_empty_DAG(6)
create_empty_DAG(10)

Run the code above in your browser using DataLab