CliqueGraph.setClique
- CliqueGraph.setClique(idClique, new_clique)
changes the set of nodes included into a given clique
- Parameters:
idClique (
int) – the id of the cliquenew_clique (
set[int] | list[int]) – the new set of nodes to be included in the clique
- Raises:
pyagrum.NotFound – If idClique is not a clique of the graph
- Return type:
None
Example
import pyagrum as gum
cg = gum.CliqueGraph()
c = cg.addNode({0, 1})
cg.setClique(c, {2, 3})
cg.clique(c)
# {2, 3}
Class