as_disco: Wrap a Graph as a Disco Object

View source: R/disco-class.R

as_discoR Documentation

Wrap a Graph as a Disco Object

Description

Wraps a causal graph object (e.g. a caugi::caugi graph, or a graph object from pcalg or bnlearn) and a Knowledge object into a Disco object, which is the output object of causal discovery methods used in causalDisco.

Usage

as_disco(graph, kn = knowledge(), class = "PDAG")

Arguments

graph

A causal graph object

kn

A Knowledge object. Default is an empty Knowledge object.

class

A string describing the graph class.

Details

The conversion from any graph type to a caugi::caugi is handled by the caugi package.

Value

A Disco object containing a caugi::caugi and a Knowledge object in a list.

See Also

caugi::caugi()

Other Extending causalDisco: distribute_engine_args(), list_registered_engines(), list_registered_tetrad_algorithms(), make_method(), make_runner(), new_disco_method(), register_engine(), register_tetrad_algorithm(), reset_engine_registry(), reset_tetrad_alg_registry()


causalDisco documentation built on Nov. 17, 2026, 5:08 p.m.