consensus_union#

fedcausal.fusion.consensus_union(dags)[source]#

Return the full consensus union of dags (Puerta et al. 2021).

The result is acyclic, since every transformed input shares one order.

Parameters:
dagsSequence[DAG]

Input DAGs over the same node set. Must be non-empty.

Returns:
DAG

The consensus-union DAG.

Raises:
ValueError

If dags is empty.