mlr3pipelines (version 0.3.0)

gunion: Disjoint Union of Graphs

Description

Takes an arbitrary amount of Graphs or PipeOps (or objects that can be automatically converted into Graphs or PipeOps, see as_graph() and as_pipeop()) as inputs and joins them in a new Graph.

The PipeOps of the input Graphs are not joined with new edges across Graphs, so if length(graphs) > 1 the resulting Graph will be disconnected.

Usage

gunion(graphs)

Arguments

graphs

list of (Graph | PipeOp) List of elements with one of the types defined above, which are the Graphs to be joined. The list can be named, in which case the IDs of the elements are prefixed with the names, separated by a dot (.).

Value

Graph the resulting Graph.

See Also

Other Graph operators: %>>%(), as_graph(), as_pipeop(), assert_graph(), assert_pipeop(), greplicate(), pipeline_greplicate()