biconcomp_distribution_nodes

Computes the distribution of the number of nodes in each biconnected components by using numpy.histogram.

sasviya.network.algorithms.biconnected_components.biconcomp_distribution_nodes(g, bins=None)

Parameters

g : SAS graph object

Specifies the undirected input graph to assess.

bins : int or list or str or None, optional

Specifies the bins for the distribution calculation. The default is None. When bins is None, bins are defined as the list of unique component sizes. When bins is int (an integer), it specifies the number of equal-width bins. When bins is a list, it specifies bin ranges and should be monotonically increasing. For example, a value of [a1, a2, a3, a4] results in the following bin ranges: [a1, a2) (inclusive of a1 but exclusive of a2), [a2, a3), and [a3, a4]. When bins is str (a string), it specifies the method to use for calculating the bin ranges. For example, ‘stone’,’auto’,’doane’,’fd’,’rice’,’scott’,’sqrt’,’sturges’. See https://numpy.org/doc/stable/reference/generated/numpy.histogram.html for more information about the bins parameter.

Returns

dict

Returns a dictionary where the key is the bin’s lower-bound value and the value is the number of biconnected components whose node count is within the range of the bin.

Last updated: July 28, 2026