(gj, p_i, Dxtrav)
return None
Return the representative h satisfying h[gj] == p_i

    If there is not such a representative return None
Return the representative h satisfying h[gj] == p_i
Return the representative h satisfying h [ gj ] == p_i
def _trace_D(gj, p_i, Dxtrav):
    """
    Return the representative h satisfying h[gj] == p_i

    If there is not such a representative return None
    """
    for h in Dxtrav:
        if h[gj] == p_i:
            return h
    return None
def _trace_D ( gj , p_i , Dxtrav ) : for h in Dxtrav : if h [ gj ] == p_i : return h return None