MPDAG.hasName

MPDAG.hasName(id)
Parameters:

id (int) – the node id

Returns:

True if the node has a name

Return type:

bool

Example

import pyagrum as gum

mpdag = gum.MPDAG.meekClosure(gum.fastPDAG("A-B->C-D"))
mpdag.hasName(0)
# True

Class

MPDAG