Score: BDeu

Calculates the BDeu score for discrete variables. The formula is given in Chickering (2002), although a different structure prior is used, as given in Ramsey et al. This score is suitable for use in GES-style algorithms, including FGES and FGES-MB.