Bayesian Optimization of Functions over Node Subsets in Graphs