src/pybel/struct/summary/edge_summary.py
def iter_annotation_value_pairs(graph: BELGraph) -> Iterable[Tuple[str, Entity]]:
    """Iterate over the key/value pairs, with duplicates, for each annotation used in a BEL graph.

    :param graph: A BEL graph
    """
    return (
        (key, entity)
        for _, _, data in graph.edges(data=True)
        for key, entities in data.get(ANNOTATIONS, {}).items()
        for entity in entities
    )
Iterate over the key/value pairs, with duplicates, for each annotation used in a BEL graph.

    :param graph: A BEL graph
    
Iterate over the key/value pairs, with duplicates, for each annotation used in a BEL graph.
Iterate over the key / value pairs with duplicates for each annotation used in a BEL graph .
def iter_annotation_value_pairs(graph: BELGraph) -> Iterable[Tuple[str, Entity]]:
    return (
        (key, entity)
        for _, _, data in graph.edges(data=True)
        for key, entities in data.get(ANNOTATIONS, {}).items()
        for entity in entities
    )
def iter_annotation_value_pairs ( graph : BELGraph ) -> Iterable [ Tuple [ str , Entity ] ] : return ( ( key , entity ) for _ , _ , data in graph . edges ( data = True ) for key , entities in data . get ( ANNOTATIONS , { } ) . items ( ) for entity in entities )
Iterate over the key/value pairs, with duplicates, for each annotation used in a BEL graph.
Iterate over the key / value pairs with duplicates for each annotation used in a BEL graph .
"""Iterate over the key/value pairs, with duplicates, for each annotation used in a BEL graph.

    :param graph: A BEL graph
    """
graph
BELGraph
A BEL graph
A BEL graph