pywhy_graphs.algorithms.add_all_snode_combinations#
- pywhy_graphs.algorithms.add_all_snode_combinations(G, n_domains: int, on_error='raise')[source]#
Add all possible S-nodes to the graph given number of domains.
- Parameters:
- GAugmentedGraph
The augmented graph.
- n_domainsint
The number of domains.
- on_errorstr, optional
How to handle errors, by default ‘raise’. Can be one of: - ‘raise’: raise an exception - ‘ignore’: ignore the error. - ‘warn’: raise a warning
- Returns:
- GAugmentedGraph
The augmented graph with all possible S-nodes added. Note that none of the added S-nodes have any edges.