empty: Return empty graph.

Description Usage Arguments Value See Also Examples

View source: R/class.R

Description

Returns an empty graph with n nodes, of the given class

Usage

1
  empty(n, class = "parental", response)

Arguments

n

A integer of length 1, specifying the number of nodes

class

The class of the returned graph. Can be any of "parental", "bn", "bvs", or "bvsresponse".

response

For "bvsresponse", which node is the response

Value

An empty graph of the specified class.

See Also

complete, parental, bn

Examples

1
2
empty(5)
empty(5, "bn")

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.