Theory of Social Choice on Networks