Principles for Controlling Agents: The Political Economy of Network Structure