Learning Quadratic Games on Networks