Create Graph Using Python Dictionaries