def _no_self_loops(array, return_test=False):
    """
    Remove self-loops
    """
    test = array[:, (0)] != array[:, (1)]
    if return_test:
        return array[(test), :].astype(int), test
    return array[(test), :].astype(int)
