MarkovRandomField.names

MarkovRandomField.names()

Set of names of variables in the model

Returns:

The names of the graph variables

Return type:

set

Example

import pyagrum as gum

mrf = gum.fastMRF("A--B;B--C")
sorted(mrf.names())
# ['A', 'B', 'C']

Class

MarkovRandomField