src/pybel/struct/filters/edge_predicates.py
def _has_modifier(edge_data: EdgeData, modifier: str) -> bool:
    """Check if the edge has the given modifier.

    :param edge_data: The edge data dictionary
    :param modifier: The modifier to check. One of :data:`pybel.constants.ACTIVITY`,
                        :data:`pybel.constants.DEGRADATION`, or :data:`pybel.constants.TRANSLOCATION`.
    :return: Does either the subject or object have the given modifier
    """
    return (
        part_has_modifier(edge_data, SOURCE_MODIFIER, modifier)
        or part_has_modifier(edge_data, TARGET_MODIFIER, modifier)
    )
Check if the edge has the given modifier.

    :param edge_data: The edge data dictionary
    :param modifier: The modifier to check. One of :data:`pybel.constants.ACTIVITY`,
                        :data:`pybel.constants.DEGRADATION`, or :data:`pybel.constants.TRANSLOCATION`.
    :return: Does either the subject or object have the given modifier
    
Check if the edge has the given modifier.
Check if the edge has the given modifier .
def _has_modifier(edge_data: EdgeData, modifier: str) -> bool:
    return (
        part_has_modifier(edge_data, SOURCE_MODIFIER, modifier)
        or part_has_modifier(edge_data, TARGET_MODIFIER, modifier)
    )
def _has_modifier ( edge_data : EdgeData , modifier : str ) -> bool : return ( part_has_modifier ( edge_data , SOURCE_MODIFIER , modifier ) or part_has_modifier ( edge_data , TARGET_MODIFIER , modifier ) )
Check if the edge has the given modifier.
Check if the edge has the given modifier .
"""Check if the edge has the given modifier.

    :param edge_data: The edge data dictionary
    :param modifier: The modifier to check. One of :data:`pybel.constants.ACTIVITY`,
                        :data:`pybel.constants.DEGRADATION`, or :data:`pybel.constants.TRANSLOCATION`.
    :return: Does either the subject or object have the given modifier
    """
Does either the subject or object have the given modifier
Does either the subject or object have the given modifier
edge_data
EdgeData
The edge data dictionary
The edge data dictionary
modifier
str
The modifier to check. One of :data:`pybel.constants.ACTIVITY`,
:data:`pybel.constants.DEGRADATION`, or :data:`pybel.constants.TRANSLOCATION`.
The modifier to check . One of : data : ` pybel . constants . ACTIVITY ` : data : ` pybel . constants . DEGRADATION ` or : data : ` pybel . constants . TRANSLOCATION ` .