Reinforcement Learning for Game-Theoretic Resource Allocation on Graphs