GenerateGraph