DiGraph.arcs

DiGraph.arcs()

Returns the set of arcs in the graph.

Returns:

the set of the arcs

Return type:

Set

Example

import pyagrum as gum

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

Class

DiGraph

Overridden in

DAG.arcs, MixedGraph.arcs, PDAG.arcs