pywhy_graphs.algorithms.add_all_snode_combinations#
- pywhy_graphs.algorithms.add_all_snode_combinations(G, n_domains: int)[source]#
Add all possible S-nodes to the graph given number of domains.
- Parameters:
G : AugmentedGraph
The augmented graph.
n_domains : int
The number of domains.
- Returns:
G : AugmentedGraph
The augmented graph with all possible S-nodes added. Note that none of the added S-nodes have any edges.