I'm new to python, and I am trying to convert a dictionary into a graph object in Networkx. The dictionary:
dict = {'key1': ['value1', 'value2', 'value3'], 'key2': ['value1', 'value2']}
I want the keys to be an ego node, and values to be their alter nodes (with out-degree going from an ego to an alter). Is this possible to achieve in Python?.