Game-theoretic analysis of network formation and drug pricing