CPDAG.edges

CPDAG.edges()
Returns:

the set of the edges of the graph: the undirected edges of a CPDAG or an MPDAG, the edges (with any marks) of a MAG

Return type:

set[tuple[int, int]]

Example

import pyagrum as gum

cpdag = gum.CPDAG.fromDAG(gum.fastDAG("A->B->C;D->C"))
cpdag.edges()  # the reversible arcs
# {(0, 1)}

Used by

CPDAG, EssentialGraph

Inheritance diagram of pyagrum.CPDAG, pyagrum.EssentialGraph