NetworkX
dict_to_numpy_array()
Convert a dictionary of dictionaries to a numpy array with optional mapping.