InfluenceDiagram.loadBIFXML
- InfluenceDiagram.loadBIFXML(*args)
Load a BIFXML file.
- Parameters:
name (
str) – the name’s file- Raises:
pyagrum.GumIOError – If file not found
pyagrum.FatalError – If file is not valid
- Return type:
bool
Example
import pyagrum as gum
diag = gum.fastID("C->*D->$U<-C")
diag.saveBIFXML("model.bifxml")
diag2 = gum.InfluenceDiagram()
diag2.loadBIFXML("model.bifxml")
# True
sorted(diag2.names())
# ['C', 'D', 'U']
Class