DAG.arcs

DAG.arcs()

Returns the set of arcs in the graph.

Returns:

the set of the arcs

Return type:

Set

Example

import pyagrum as gum

dag = gum.fastDAG("A->B->C;A->C")
sorted(dag.arcs())
# [(0, 1), (0, 2), (1, 2)]

Class

DAG