Implement Graph Using Python Dictionaries