(graph, degree)
return counts
Calculates the proportion of intersection types in a graph.
Calculates the proportion of intersection types in a graph.
Calculates the proportion of intersection types in a graph .
def _proportion(graph, degree):
    """
    Calculates the proportion of intersection types in a graph.
    """
    import collections

    values = list(dict(graph.nodes(degree)).values())
    counts = collections.Counter(values)
    return counts
def _proportion ( graph , degree ) : import collections values = list ( dict ( graph . nodes ( degree ) ) . values ( ) ) counts = collections . Counter ( values ) return counts