causaldag.classes.ancestral_graph.AncestralGraph.shd_skeleton

AncestralGraph.shd_skeleton(other) → int[source]

Compute the structure Hamming distance between the skeleton of this graph and the skeleton of another graph.

Parameters:other – the graph to which the SHD of the skeleton will be computed.
Returns:The structural Hamming distance between G_1 and G_2 is the minimum number of arc additions, deletions, and reversals required to transform G_1 into G_2 (and vice versa).
Return type:int

Example

>>> TODO