src/pybel/struct/summary/edge_summary.py
def count_relations(graph: BELGraph) -> Counter:
    """Return a histogram over all relationships in a graph.

    :param graph: A BEL graph
    :return: A Counter from {relation type: frequency}
    """
    return Counter(
        data[RELATION]
        for _, _, data in graph.edges(data=True)
    )
Return a histogram over all relationships in a graph.

    :param graph: A BEL graph
    :return: A Counter from {relation type: frequency}
    
Return a histogram over all relationships in a graph.
Return a histogram over all relationships in a graph .
def count_relations(graph: BELGraph) -> Counter:
    return Counter(
        data[RELATION]
        for _, _, data in graph.edges(data=True)
    )
def count_relations ( graph : BELGraph ) -> Counter : return Counter ( data [ RELATION ] for _ , _ , data in graph . edges ( data = True ) )
Return a histogram over all relationships in a graph.
Return a histogram over all relationships in a graph .
"""Return a histogram over all relationships in a graph.

    :param graph: A BEL graph
    :return: A Counter from {relation type: frequency}
    """
A Counter from {relation type: frequency}
A Counter from { relation type : frequency }
graph
BELGraph
A BEL graph
A BEL graph