randomDnf: sample normal form

View source: R/bnem_main.r

randomDnfR Documentation

sample normal form

Description

creates a random normal form or hyper-graph

Usage

randomDnf(
  vertices = 10,
  negation = TRUE,
  max.edge.size = NULL,
  max.edges = NULL,
  dag = FALSE
)

Arguments

vertices

number of vertices

negation

if TRUE, negations (NOT gates) are allowed

max.edge.size

maximal number of inputs per edge

max.edges

maximal number of hyper-edges

dag

if TRUE, graph will be acyclic

Value

random hyper-graph in normal form

Author(s)

Martin Pirkl

Examples

g <- randomDnf(10)

MartinFXP/bnem documentation built on Nov. 5, 2024, 11:57 a.m.