(self, context, bbox, palette, *args, **kwds)
return VertexCover.__plot__(self, context, bbox, palette, *args, **kwds)
Plots the cohesive block structure to the given Cairo context in
        the given bounding box.

        Since a L{CohesiveBlocks} instance is also a L{VertexCover}, keyword
        arguments accepted by L{VertexCover.__plot__()} are also accepted here.
        The only difference is that the vertices are colored according to their
        maximal cohesions by default, and groups are marked by colored blobs
        except the last group which encapsulates the whole graph.

        See the documentation of L{VertexCover.__plot__()} for more details.
Plots the cohesive block structure to the given Cairo context in
        the given bounding box.
Plots the cohesive block structure to the given Cairo context in the given bounding box .
def __plot__(self, context, bbox, palette, *args, **kwds):
        """Plots the cohesive block structure to the given Cairo context in
        the given bounding box.

        Since a L{CohesiveBlocks} instance is also a L{VertexCover}, keyword
        arguments accepted by L{VertexCover.__plot__()} are also accepted here.
        The only difference is that the vertices are colored according to their
        maximal cohesions by default, and groups are marked by colored blobs
        except the last group which encapsulates the whole graph.

        See the documentation of L{VertexCover.__plot__()} for more details.
        """
        prepare_groups = False
        if "mark_groups" not in kwds:
            if Configuration.instance()["plotting.mark_groups"]:
                prepare_groups = True
        elif kwds["mark_groups"] is True:
            prepare_groups = True

        if prepare_groups:
            colors = [pair for pair in enumerate(self.cohesions()) if pair[1] > 1]
            kwds["mark_groups"] = colors

        if "vertex_color" not in kwds:
            kwds["vertex_color"] = self.max_cohesions()

        return VertexCover.__plot__(self, context, bbox, palette, *args, **kwds)
def __plot__ ( self , context , bbox , palette , * args , * * kwds ) : prepare_groups = False if "mark_groups" not in kwds : if Configuration . instance ( ) [ "plotting.mark_groups" ] : prepare_groups = True elif kwds [ "mark_groups" ] is True : prepare_groups = True if prepare_groups : colors = [ pair for pair in enumerate ( self . cohesions ( ) ) if pair [ 1 ] > 1 ] kwds [ "mark_groups" ] = colors if "vertex_color" not in kwds : kwds [ "vertex_color" ] = self . max_cohesions ( ) return VertexCover . __plot__ ( self , context , bbox , palette , * args , * * kwds )