A Flexible Framework for Nonparametric Graphical Modeling that Accommodates Machine Learning