def build_predicate_direction(predicate: str, reverse: bool) -> str:
    """Given a tuple of predicate string and direction, build a string with arrows"""
    if reverse:
        return f"<-{predicate}-"
    else:
        return f"-{predicate}->"