src/pybel/parser/parse_bel.py
def _add_qualified_edge_helper(
        self,
        *,
        source,
        source_modifier,
        relation,
        target,
        target_modifier,
        annotations,
    ) -> str:
        """Add a qualified edge from the internal aspects of the parser."""
        m = {
            BINDS: self.graph.add_binds,
        }
        adder = m.get(relation)
        d = dict(
            evidence=self.control_parser.evidence,
            citation=self.control_parser.get_citation(),
            annotations=annotations,
            source_modifier=source_modifier,
            target_modifier=target_modifier,
            **{LINE: self.get_line_number()},
        )
        if adder is not None:
            return adder(source=source, target=target, **d)
        else:
            return self.graph.add_qualified_edge(source=source, target=target, relation=relation, **d)
Add a qualified edge from the internal aspects of the parser.
Add a qualified edge from the internal aspects of the parser.
Add a qualified edge from the internal aspects of the parser .
def _add_qualified_edge_helper(
        self,
        *,
        source,
        source_modifier,
        relation,
        target,
        target_modifier,
        annotations,
    ) -> str:
        m = {
            BINDS: self.graph.add_binds,
        }
        adder = m.get(relation)
        d = dict(
            evidence=self.control_parser.evidence,
            citation=self.control_parser.get_citation(),
            annotations=annotations,
            source_modifier=source_modifier,
            target_modifier=target_modifier,
            **{LINE: self.get_line_number()},
        )
        if adder is not None:
            return adder(source=source, target=target, **d)
        else:
            return self.graph.add_qualified_edge(source=source, target=target, relation=relation, **d)
def _add_qualified_edge_helper ( self , * , source , source_modifier , relation , target , target_modifier , annotations , ) -> str : m = { BINDS : self . graph . add_binds , } adder = m . get ( relation ) d = dict ( evidence = self . control_parser . evidence , citation = self . control_parser . get_citation ( ) , annotations = annotations , source_modifier = source_modifier , target_modifier = target_modifier , ** { LINE : self . get_line_number ( ) } , ) if adder is not None : return adder ( source = source , target = target , ** d ) else : return self . graph . add_qualified_edge ( source = source , target = target , relation = relation , ** d )
Add a qualified edge from the internal aspects of the parser.
Add a qualified edge from the internal aspects of the parser .
"""Add a qualified edge from the internal aspects of the parser."""
self
source
source_modifier
relation
target
target_modifier
annotations