I have the following list:
[('0-N', '3-C'), ('3-C', '5-C'), ('3-C', '9-C'), ('9-C', '12-C')]
I want to create the following dictionary with Key value pair from the list as:
{'0-N':['3-C'],'3-C':['0-N','5-C','9-C'],'9-C':['3-C','12-C'],'12-C':['9-C']}
Any suggestions or help will be highly appreciated.