Spectral Bayesian Network Theory: Graph Theoretic Solutions to Problems in Bayesian Networks