qat.opt.results.KCliqueResult

The KCliqueGenerator can return a parsed result that includes a parsed version of the best Sample, that could be displayed. The nodes that forms the clique can be accessed through the clique function.

class qat.opt.results.KCliqueResult(graph, *args, **kwargs)

Result of a KClique problem. This class adds an attribute clique used to extract the clique found

property clique

Extract the nodes in the graph that forms the clique

display(with_figure=False, figsize=(6.4, 4.8), node_size=300, font_size=12, **kwargs)

Display the partitions using the draw_networkx method from networkx

Parameters
  • with_figure (bool, optional) – wrap the displayed in a matplotlib.pyplot figure

  • figsize (tuple, optional) – the size of the matplotlib.pyplot figure, only used if with_figure is True

  • node_size (int, optional) – the size of the node in the diagram passed to the draw_networkx function

  • font_size (int, optional) – the font size in the diagram passed to the draw_networkx function