MarkedGraph.spouses

MarkedGraph.spouses(x)
Parameters:

x (int) – the id of a node

Returns:

the nodes y such that x<->y

Return type:

set[int]

Example

import pyagrum as gum

g = gum.fastMarkedGraph("A->B<->C;B<->D")
g.spouses(1)
# {2, 3}

Used by

MarkedGraph, PAG

Inheritance diagram of pyagrum.MarkedGraph, pyagrum.PAG