intersection#

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

Return the skeleton intersection of dags, oriented by dags[0].

Parameters:
dagsSequence[DAG]

Input DAGs, all over the same node set 0..n-1. Must be non-empty.

Returns:
DAG

A DAG keeping each edge (a, b) of dags[0] whose skeleton pair {a, b} appears in every other DAG.

Raises:
ValueError

If dags is empty.