Bandits on graphs and structures