src/pybel/struct/graph.py
def add_qualified_edge(
        self,
        source: BaseEntity,
        target: BaseEntity,
        *,
        relation: str,
        evidence: str,
        citation: Union[str, Tuple[str, str], CitationDict],
        annotations: Optional[AnnotationsHint] = None,
        source_modifier: Optional[Mapping[str, Any]] = None,
        target_modifier: Optional[Mapping[str, Any]] = None,
        **attr
    ) -> str:
        """Add a qualified edge.

        Qualified edges have a relation, evidence, citation, and optional annotations, subject modifications,
        and object modifications.

        :param source: The source node
        :param target: The target node
        :param relation: The type of relation this edge represents
        :param evidence: The evidence string from an article
        :param citation: The citation data dictionary for this evidence. If a string is given,
         assumes it's a PubMed identifier and auto-fills the citation type.
        :param annotations: The annotations data dictionary
        :param source_modifier: The modifiers (like activity) on the subject node. See data model documentation.
        :param target_modifier: The modifiers (like activity) on the object node. See data model documentation.

        :return: The hash of the edge
        """
        if 'subject_modifier' in attr:
            warnings.warn('subject_modifier has been renamed to source_modifier')
            source_modifier = attr.pop('subject_modifier')
        if 'object_modifier' in attr:
            warnings.warn('object_modifier has been renamed to target_modifier')
            target_modifier = attr.pop('object_modifier')

        attr = self._build_attr(
            relation=relation,
            evidence=evidence,
            citation=citation,
            annotations=annotations,
            source_modifier=source_modifier,
            target_modifier=target_modifier,
            **attr
        )
        return self._help_add_edge(source=source, target=target, attr=attr)
Add a qualified edge.

        Qualified edges have a relation, evidence, citation, and optional annotations, subject modifications,
        and object modifications.

        :param source: The source node
        :param target: The target node
        :param relation: The type of relation this edge represents
        :param evidence: The evidence string from an article
        :param citation: The citation data dictionary for this evidence. If a string is given,
         assumes it's a PubMed identifier and auto-fills the citation type.
        :param annotations: The annotations data dictionary
        :param source_modifier: The modifiers (like activity) on the subject node. See data model documentation.
        :param target_modifier: The modifiers (like activity) on the object node. See data model documentation.

        :return: The hash of the edge
        
Add a qualified edge.
Qualified edges have a relation, evidence, citation, and optional annotations, subject modifications,
and object modifications.
Add a qualified edge . Qualified edges have a relation evidence citation and optional annotations subject modifications and object modifications .
def add_qualified_edge(
        self,
        source: BaseEntity,
        target: BaseEntity,
        *,
        relation: str,
        evidence: str,
        citation: Union[str, Tuple[str, str], CitationDict],
        annotations: Optional[AnnotationsHint] = None,
        source_modifier: Optional[Mapping[str, Any]] = None,
        target_modifier: Optional[Mapping[str, Any]] = None,
        **attr
    ) -> str:
        if 'subject_modifier' in attr:
            warnings.warn('subject_modifier has been renamed to source_modifier')
            source_modifier = attr.pop('subject_modifier')
        if 'object_modifier' in attr:
            warnings.warn('object_modifier has been renamed to target_modifier')
            target_modifier = attr.pop('object_modifier')
        attr = self._build_attr(
            relation=relation,
            evidence=evidence,
            citation=citation,
            annotations=annotations,
            source_modifier=source_modifier,
            target_modifier=target_modifier,
            **attr
        )
        return self._help_add_edge(source=source, target=target, attr=attr)
def add_qualified_edge ( self , source : BaseEntity , target : BaseEntity , * , relation : str , evidence : str , citation : Union [ str , Tuple [ str , str ] , CitationDict ] , annotations : Optional [ AnnotationsHint ] = None , source_modifier : Optional [ Mapping [ str , Any ] ] = None , target_modifier : Optional [ Mapping [ str , Any ] ] = None , ** attr ) -> str : if 'subject_modifier' in attr : warnings . warn ( 'subject_modifier has been renamed to source_modifier' ) source_modifier = attr . pop ( 'subject_modifier' ) if 'object_modifier' in attr : warnings . warn ( 'object_modifier has been renamed to target_modifier' ) target_modifier = attr . pop ( 'object_modifier' ) attr = self . _build_attr ( relation = relation , evidence = evidence , citation = citation , annotations = annotations , source_modifier = source_modifier , target_modifier = target_modifier , ** attr ) return self . _help_add_edge ( source = source , target = target , attr = attr )
Add a qualified edge.
Add a qualified edge .
"""Add a qualified edge.

        Qualified edges have a relation, evidence, citation, and optional annotations, subject modifications,
        and object modifications.

        :param source: The source node
        :param target: The target node
        :param relation: The type of relation this edge represents
        :param evidence: The evidence string from an article
        :param citation: The citation data dictionary for this evidence. If a string is given,
         assumes it's a PubMed identifier and auto-fills the citation type.
        :param annotations: The annotations data dictionary
        :param source_modifier: The modifiers (like activity) on the subject node. See data model documentation.
        :param target_modifier: The modifiers (like activity) on the object node. See data model documentation.

        :return: The hash of the edge
        """
The hash of the edge
The hash of the edge
self
source
BaseEntity
The source node
The source node
target
BaseEntity
The target node
The target node
relation
str
The type of relation this edge represents
The type of relation this edge represents
evidence
str
The evidence string from an article
The evidence string from an article
citation
Union[str, Tuple[str, str], CitationDict]
The citation data dictionary for this evidence. If a string is given,
assumes it's a PubMed identifier and auto-fills the citation type.
The citation data dictionary for this evidence . If a string is given assumes it ' s a PubMed identifier and auto - fills the citation type .
annotations
Optional[AnnotationsHint]
The annotations data dictionary
The annotations data dictionary
source_modifier
Optional[Mapping[str, Any]]
The modifiers (like activity) on the subject node. See data model documentation.
The modifiers ( like activity ) on the subject node . See data model documentation .
target_modifier
Optional[Mapping[str, Any]]
The modifiers (like activity) on the object node. See data model documentation.
The modifiers ( like activity ) on the object node . See data model documentation .