src/pybel/manager/cache_manager.py
def _add_qualified_edge(
        self,
        graph: BELGraph,
        source: Node,
        target: Node,
        key: str,
        bel: str,
        data: EdgeData,
    ) -> Optional[Edge]:
        """Add a qualified edge to the network."""
        citation_dict = data[CITATION]
        citation = self.get_or_create_citation(
            namespace=citation_dict[NAMESPACE],
            identifier=citation_dict[IDENTIFIER],
        )
        evidence = self.get_or_create_evidence(citation, data[EVIDENCE])
        annotations = self._get_annotation_entries_from_data(graph, data)

        return self.get_or_create_edge(
            source=source,
            target=target,
            relation=data[RELATION],
            bel=bel,
            md5=key,
            data=data,
            evidence=evidence,
            annotations=annotations,
        )
Add a qualified edge to the network.
Add a qualified edge to the network.
Add a qualified edge to the network .
def _add_qualified_edge(
        self,
        graph: BELGraph,
        source: Node,
        target: Node,
        key: str,
        bel: str,
        data: EdgeData,
    ) -> Optional[Edge]:
        citation_dict = data[CITATION]
        citation = self.get_or_create_citation(
            namespace=citation_dict[NAMESPACE],
            identifier=citation_dict[IDENTIFIER],
        )
        evidence = self.get_or_create_evidence(citation, data[EVIDENCE])
        annotations = self._get_annotation_entries_from_data(graph, data)
        return self.get_or_create_edge(
            source=source,
            target=target,
            relation=data[RELATION],
            bel=bel,
            md5=key,
            data=data,
            evidence=evidence,
            annotations=annotations,
        )
def _add_qualified_edge ( self , graph : BELGraph , source : Node , target : Node , key : str , bel : str , data : EdgeData , ) -> Optional [ Edge ] : citation_dict = data [ CITATION ] citation = self . get_or_create_citation ( namespace = citation_dict [ NAMESPACE ] , identifier = citation_dict [ IDENTIFIER ] , ) evidence = self . get_or_create_evidence ( citation , data [ EVIDENCE ] ) annotations = self . _get_annotation_entries_from_data ( graph , data ) return self . get_or_create_edge ( source = source , target = target , relation = data [ RELATION ] , bel = bel , md5 = key , data = data , evidence = evidence , annotations = annotations , )
Add a qualified edge to the network.
Add a qualified edge to the network .
"""Add a qualified edge to the network."""
self
graph
BELGraph
source
Node
target
Node
key
str
bel
str
data
EdgeData