randomDag: Random Dag Graph Generator

View source: R/randomDag.R

randomDagR Documentation

Random Dag Graph Generator

Description

randomDag is the Directed Acyclic Graphs generator.

Usage

randomDag(seed = NULL, numNodes = 10, numEdges = 10, java.parameters = NULL)

Arguments

numNodes

integer indicating a number of nodes being generated. By default, numNodes=10.

numEdges

integer indicating a number of edges being generated. By default, numEdges=10.

java.parameters

string indicating an optional parameters for JVM. For example, java.parameters = "-Xmx1024M". By default, java.parameters=NULL.

Details

More detail about randomDag implementation, please visit the java documentation.

Value

A list containing the randomDag's parameters, the input dataset, the result's nodes, and the result's edges.

Examples

randomDag <- randomDag(numNodes = 10, numEdges = 10)
randomDag$parameters #Show the randomDag's parameters
randomDag$nodes #Show the result's nodes
randomDag$edges #Show the result's edges

bd2kccd/r-causal documentation built on Sept. 7, 2024, 8:32 p.m.