GetBiCon

GetBiCon()

A graph method for undirected graphs that returns all bi-connected components of a graph.

Parameters:

  • None

Return value:

  • BiCnComV: TCnComV, a vector of connected components

    A vector of bi-connected components. Each component is defined by the ids of its member nodes.

The following example shows how to print out representations of the bi-connected components of a TUNGraph:

import snap

UGraph = snap.GenRndGnm(snap.TUNGraph, 100, 1000)
V = UGraph.GetBiCon()
for CnCom in V:
  for NI in CnCom:
    print(NI)
  print("---------------")