Return the number of nodes (variables) in the graphical model.
the number of nodes
int
Example
import pyagrum as gum mrf = gum.fastMRF("A--B;B--C") mrf.size() # 3
Class
MarkovRandomField