Python Keyerror When Searching The Graph Using Dfs

Python Keyerror When Searching The Graph Using Dfs