InfluenceDiagram.existsPathBetween

InfluenceDiagram.existsPathBetween(*args)
Returns:

true if a path exists between two nodes.

Return type:

bool

Example

import pyagrum as gum

diag = gum.fastID("A->*D->$U;B")
diag.existsPathBetween("A", "U")
# True
diag.existsPathBetween("U", "A")
# False
diag.existsPathBetween("A", "B")
# False

Class

InfluenceDiagram