Graph-based Learning Using A Naive Bayesian Classifier