CliqueGraph.container

CliqueGraph.container(idNode)
Parameters:

idNode (int) – the id of the node

Returns:

the id of a clique containing the node

Return type:

int

Raises:

pyagrum.NotFound – If no clique contains idNode

Example

import pyagrum as gum

cg = gum.CliqueGraph()
cg.addNode({0, 1})
# 0
cg.addNode({1, 2})
# 1
cg.container(2)  # the clique containing the node 2
# 1

Class

CliqueGraph