def judge_direction(self, relation: str) -> str:
        """
        Judge direction.

        Args:
            relation: relation in string format

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

        Judge direction.

        Args:
            relation: relation in string format

        
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/cypher_corrector.py