@staticmethod
def __normalize_neighbors(neighbors_weight_dict):
    """
        Normalizes the weights of the neighbors to the total weight
        of all neighbors.

        :param neighbors_weight_dict: dict, keys: node_pub_keys,
                                            values: weights
        :return: dict, keys: node_pub_keys, values: normalized weights
        """
    total_weight = 0
    normalized_dict = {}
    for n, nv in neighbors_weight_dict.items():
        total_weight += nv
    for n, nv in neighbors_weight_dict.items():
        normalized_dict[n] = float(nv) / total_weight
    return normalized_dict
