Graph Transformations and Game Theory: A Generative Mechanism for Network Formation