src/pybel/manager/models.py
def insert_into_graph(self, graph: BELGraph) -> str:
        """Insert this edge into a BEL graph."""
        u = self.source.as_bel()
        v = self.target.as_bel()

        if self.evidence:
            return graph.add_qualified_edge(u, v, **self.data)
        else:
            return graph.add_unqualified_edge(u, v, self.relation)
Insert this edge into a BEL graph.
Insert this edge into a BEL graph.
Insert this edge into a BEL graph .
def insert_into_graph(self, graph: BELGraph) -> str:
        u = self.source.as_bel()
        v = self.target.as_bel()
        if self.evidence:
            return graph.add_qualified_edge(u, v, **self.data)
        else:
            return graph.add_unqualified_edge(u, v, self.relation)
def insert_into_graph ( self , graph : BELGraph ) -> str : u = self . source . as_bel ( ) v = self . target . as_bel ( ) if self . evidence : return graph . add_qualified_edge ( u , v , ** self . data ) else : return graph . add_unqualified_edge ( u , v , self . relation )
Insert this edge into a BEL graph.
Insert this edge into a BEL graph .
"""Insert this edge into a BEL graph."""
self
graph
BELGraph