MixedGraph.arcs

MixedGraph.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.fastMixedGraph("A->B-C;C->D")
sorted(g.arcs())
# [(0, 1), (2, 3)]

Class

MixedGraph

Overridden in

PDAG.arcs