CLabelState#

class graph_tool.inference.CLabelState(g, b, clabel=None, pclabel=None, label_type='int64_t')[source]#

Bases: ABC

Base state that implements partition contraints.

Methods

get_bclabel([clabel])

Returns a VertexPropertyMap corresponding to constraint labels for the block graph.

get_bpclabel()

Returns a VertexPropertyMap corresponding to partition constraint labels for the block graph.

get_bclabel(clabel=None)[source]#

Returns a VertexPropertyMap corresponding to constraint labels for the block graph.

get_bpclabel()[source]#

Returns a VertexPropertyMap corresponding to partition constraint labels for the block graph.