You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample k DAGs uniformly from the Markov equivalence class represented by the CPDAG.
22
-
23
-
Parameters
24
-
-----------
25
-
cpdag: A list of tuples representing the edges of the CPDAG, where each tuple is a pair of integers (vertex1, vertex2). Undirected edges are encoded by including both (a, b) and (b, a).
26
-
k: The number of DAGs to sample.
27
-
28
-
Returns
29
-
-------
30
-
A list of DAGs, where each DAG is represented as a list of tuples (edges).
Sample k DAGs (represented by a topological order) uniformly from the Markov equivalence class represented by the CPDAG.
37
-
38
-
Parameters
39
-
-----------
40
-
cpdag: A list of tuples representing the edges of the CPDAG, where each tuple is a pair of integers (vertex1, vertex2). Undirected edges are encoded by including both (a, b) and (b, a).
41
-
k: The number of DAGs to sample.
42
-
43
-
Returns
44
-
-------
45
-
A list of topological orders, where each topological order is represented as a list of integers (vertex indices).
0 commit comments