src/pybel/parser/parse_bel.py
def _add_qualified_edge(self, *, source, source_modifier, relation, target, target_modifier) -> str:
        """Add an edge, then adds the opposite direction edge if it should."""
        d = dict(
            relation=relation,
            annotations=self.control_parser.annotations,
        )
        if relation in TWO_WAY_RELATIONS:
            self._add_qualified_edge_helper(
                source=target, source_modifier=target_modifier, target=source, target_modifier=source_modifier, **d
            )
        return self._add_qualified_edge_helper(
            source=source, source_modifier=source_modifier, target=target, target_modifier=target_modifier, **d
        )
Add an edge, then adds the opposite direction edge if it should.
Add an edge, then adds the opposite direction edge if it should.
Add an edge then adds the opposite direction edge if it should .
def _add_qualified_edge(self, *, source, source_modifier, relation, target, target_modifier) -> str:
        d = dict(
            relation=relation,
            annotations=self.control_parser.annotations,
        )
        if relation in TWO_WAY_RELATIONS:
            self._add_qualified_edge_helper(
                source=target, source_modifier=target_modifier, target=source, target_modifier=source_modifier, **d
            )
        return self._add_qualified_edge_helper(
            source=source, source_modifier=source_modifier, target=target, target_modifier=target_modifier, **d
        )
def _add_qualified_edge ( self , * , source , source_modifier , relation , target , target_modifier ) -> str : d = dict ( relation = relation , annotations = self . control_parser . annotations , ) if relation in TWO_WAY_RELATIONS : self . _add_qualified_edge_helper ( source = target , source_modifier = target_modifier , target = source , target_modifier = source_modifier , ** d ) return self . _add_qualified_edge_helper ( source = source , source_modifier = source_modifier , target = target , target_modifier = target_modifier , ** d )
Add an edge, then adds the opposite direction edge if it should.
Add an edge then adds the opposite direction edge if it should .
"""Add an edge, then adds the opposite direction edge if it should."""
self
source
source_modifier
relation
target
target_modifier