Safe Haskell | Safe-Infered |
---|

Parser for a subset of the Hugin Net language

- importBayesianGraph :: Factor f => String -> IO (Maybe (BNMonad DirectedSG f (Map String DV)))

# Documentation

importBayesianGraph :: Factor f => String -> IO (Maybe (BNMonad DirectedSG f (Map String DV)))Source

Import a bayesian network form a Hugin file. Only a subset of the file format is supported. You may have to convert the line endings to be able to parse a file When it is succeeding, it is returing a bayesian network monad and a mapping from node names to discrete variables.