def getReverseConnectivity(connectivity):
    """getReverseConnectivity(connectivity) -->
       resort connectivity dict with nodes as keys"""
    reverseConnectivity = {}
    for el, conn in connectivity.items():
        for node in conn:
            if node not in reverseConnectivity.keys():
                reverseConnectivity[node]=[el,]
            else:
                reverseConnectivity[node].append(el)
    return reverseConnectivity
getReverseConnectivity(connectivity) -->
       resort connectivity dict with nodes as keys
recipes/Python/279230_getReverseConnectivity/recipe-279230.py