src/pybel/io/triples/converters.py
def predicate(cls, u, v, key, edge_data) -> bool:
        """Test a BEL edge has a given relation."""
        return (
            isinstance(u, cls.subject_type)
            and edge_data[RELATION] in cls.relations
            and isinstance(v, cls.object_type)
        )
Test a BEL edge has a given relation.
Test a BEL edge has a given relation.
Test a BEL edge has a given relation .
def predicate(cls, u, v, key, edge_data) -> bool:
        return (
            isinstance(u, cls.subject_type)
            and edge_data[RELATION] in cls.relations
            and isinstance(v, cls.object_type)
        )
def predicate ( cls , u , v , key , edge_data ) -> bool : return ( isinstance ( u , cls . subject_type ) and edge_data [ RELATION ] in cls . relations and isinstance ( v , cls . object_type ) )
Test a BEL edge has a given relation.
Test a BEL edge has a given relation .
"""Test a BEL edge has a given relation."""
cls
u
v
key
edge_data