rand_case: Test Case: Random graph and matching data

Description Usage Arguments Value See Also

Description

Generates an igraph object and a corresponding dataset. A number of unobserved vertices will be chosen at random. Used to randomly generate test cases. If supplied an input graph structure, the new structure is simulated using a power law. Otherwise, the function uses the sim_DAG in the lucy https://github.com/robertness/lucy package.

Usage

1
rand_case(p, n = p * p + p, input_g = NULL, method = "ordered")

Arguments

p

the number of desired nodes

n

the number of desired rows in the data

input_g

an igraph object. If supplied then the graph is simulated from a power law fit on this input graph.

method

the fitting method for simulating a directed acyclic graph. Ignored if input_g is supplied.

Value

A list of two elements, graph and data.

See Also

power_signal_graph

sim_DAG


robertness/signalgraph documentation built on May 27, 2019, 10:33 a.m.