Stochastic Contextual Bandits with Graph-based Contexts