graphical_models.classes.mags.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 and is the minimum number of arc additions, deletions, and reversals required to transform into (and vice versa).
- Return type
int
Example
>>> TODO