src/pybel/parser/parse_bel.py
def handle_inverse_unqualified_relation(self, _, __, tokens: ParseResults) -> ParseResults:
        """Handle unqualified relations that should go reverse."""
        source = self.ensure_node(tokens[SOURCE])
        target = self.ensure_node(tokens[TARGET])
        relation = tokens[RELATION]
        self.graph.add_unqualified_edge(source=target, target=source, relation=relation)
        return tokens
Handle unqualified relations that should go reverse.
Handle unqualified relations that should go reverse.
Handle unqualified relations that should go reverse .
def handle_inverse_unqualified_relation(self, _, __, tokens: ParseResults) -> ParseResults:
        source = self.ensure_node(tokens[SOURCE])
        target = self.ensure_node(tokens[TARGET])
        relation = tokens[RELATION]
        self.graph.add_unqualified_edge(source=target, target=source, relation=relation)
        return tokens
def handle_inverse_unqualified_relation ( self , _ , __ , tokens : ParseResults ) -> ParseResults : source = self . ensure_node ( tokens [ SOURCE ] ) target = self . ensure_node ( tokens [ TARGET ] ) relation = tokens [ RELATION ] self . graph . add_unqualified_edge ( source = target , target = source , relation = relation ) return tokens
Handle unqualified relations that should go reverse.
Handle unqualified relations that should go reverse .
"""Handle unqualified relations that should go reverse."""
self
_
__
tokens
ParseResults