def unit(g, node_1, node_2):
    """
    Function to calculate the 'unit' weight.
    :param g: NX graph.
    :param node_1: Node 1. of a pair.
    :param node_2: Node 2. of a pair.    
    """    
    return 1