MixedGraph.existsArc
- MixedGraph.existsArc(n1, n2)
Check if an arc exists between n1 and n2.
- Parameters:
n1 (
int) – the id of the tail noden2 (
int) – the id of the head node
- Returns:
True if the arc exists
- Return type:
bool
Example
import pyagrum as gum
g = gum.fastMixedGraph("A->B-C")
g.existsArc(0, 1)
# True
g.existsArc(1, 2) # B-C is an edge, not an arc
# False
Class
Overridden in