causal_networkx.algorithms.compute_v_structures#

causal_networkx.algorithms.compute_v_structures(graph)[source]#

Iterate through the graph to compute all v-structures.

Parameters:

graph : instance of DAG

A causal graph.

Returns:

vstructs : Set[Tuple]

The v structures within the graph.

:rtype:py:class:Set[Tuple]