with open('coauthorshipGraph.txt', 'r') as f:
    json_data = {int(key): [int(item) for item in value] for key, value in
        json.load(f).items()}
json_data
Convert a string key to int in a Dictionary