MAG.empty

MAG.empty()
Returns:

True if the graph has no node

Return type:

bool

Example

import pyagrum as gum

mag = gum.MAG.fromDAG(gum.fastDAG("A->B"))
mag.empty()
# False

Class

MAG