MarkedGraph.isUndirected
- MarkedGraph.isUndirected(x, y)
Return True if the edge x-y has a tail at both ends (x–y).
- Parameters:
x (
int)y (
int)
- Return type:
bool
Example
import pyagrum as gum
g = gum.fastMarkedGraph("A-B;B->C")
g.isUndirected(0, 1), g.isUndirected(1, 2)
# (True, False)
Used by
