Returns a distribution of sizes of 1-components: maximal connected components of that can be disconnected from the Graph by removing a single edge.
Parameters:
A Snap.py undirected graph.
A vector of pairs (number of nodes in the 1-component, number of such components).
Return value:
The following example shows how to get distribution of sizes of 1-components in TUNGraph:
import snap
UGraph = snap.GenRndGnm(snap.PUNGraph, 100, 100)
szCntV = snap.TIntPrV()
snap.Get1CnComSzCnt(UGraph, szCntV)
for item in szCntV:
print "%d, %d" % (item.GetVal1(), item.GetVal2())