(self, return_articulation_points=False)
\
        Calculates the biconnected components of the graph.

        @param return_articulation_points: whether to return the articulation
          points as well
        @return: a L{VertexCover} object describing the biconnected components,
          and optionally the list of articulation points as well
\
        Calculates the biconnected components of the graph.
\ Calculates the biconnected components of the graph .
def biconnected_components(self, return_articulation_points=False):
        """\
        Calculates the biconnected components of the graph.

        @param return_articulation_points: whether to return the articulation
          points as well
        @return: a L{VertexCover} object describing the biconnected components,
          and optionally the list of articulation points as well
        """
        if return_articulation_points:
            trees, aps = GraphBase.biconnected_components(self, True)
        else:
            trees = GraphBase.biconnected_components(self, False)

        clusters = []
        if trees:
            edgelist = self.get_edgelist()
            for tree in trees:
                cluster = set()
                for edge_id in tree:
                    cluster.update(edgelist[edge_id])
                clusters.append(sorted(cluster))

        clustering = VertexCover(self, clusters)

        if return_articulation_points:
            return clustering, aps
        else:
            return clustering
def biconnected_components ( self , return_articulation_points = False ) : if return_articulation_points : trees , aps = GraphBase . biconnected_components ( self , True ) else : trees = GraphBase . biconnected_components ( self , False ) clusters = [ ] if trees : edgelist = self . get_edgelist ( ) for tree in trees : cluster = set ( ) for edge_id in tree : cluster . update ( edgelist [ edge_id ] ) clusters . append ( sorted ( cluster ) ) clustering = VertexCover ( self , clusters ) if return_articulation_points : return clustering , aps else : return clustering