def judge_direction(self, relation: str) -> str:
        """
        Args:
            relation: relation in string format.

        """
        direction = "BIDIRECTIONAL"
        if relation[0] == "<":
            direction = "INCOMING"
        if relation[-1] == ">":
            direction = "OUTGOING"
        return direction

        Args:
            relation: relation in string format.

        
llama-index-integrations/tools/llama-index-tools-neo4j/llama_index/tools/neo4j/query_validator.py