Implement Graph Using Python