max_edges#

fedcausal.fusion.max_edges(dags, limit='max')[source]#

Union the highest-frequency edges up to a total-edge budget.

Parameters:
dagsSequence[DAG]

Input DAGs over the same node set.

limitint or {“mean”, “max”, “min”}, default=”max”

The budget: a number of edges, or the mean, largest or smallest edge count of the transformed inputs.

Returns:
DAG

The budgeted consensus DAG.