generateRandomData {hasseDiagram}R Documentation

Generate random data for hasse function

Description

This function generates random data for hasse function.

Usage

generateRandomData(nrNodes, minGraphs = 1, density = 0.5)

Arguments

nrNodes

Numer of nodes (0 < nrNodes).

minGraphs

Minimal number of graphs to generate (0 < minGraphs <= nrNodes).

density

Value which determines number of edges and shape of graphs (density in [0.0; 1.0]).

Value

nrNodes x nrNodes matrix.

Examples

data0_0 <- generateRandomData(15, 2, 0.0)
data0_5 <- generateRandomData(15, 2, 0.5)
data1_0 <- generateRandomData(15, 2, 1.0)

hasse(data0_0)
hasse(data0_5)
hasse(data1_0)

[Package hasseDiagram version 0.2.0 Index]