CliqueGraph.separator
- CliqueGraph.separator(cliq1, cliq2)
- Parameters:
edge (
pyagrum.Edge) – the edge to be checkedclique1 (
int) – one extremity of the edgeclique (
int) – the other extremity of the edgecliq1 (
int)cliq2 (
int)
- Returns:
the separator included in a given edge
- Return type:
set- Raises:
pyagrum.NotFound – If the edge does not belong to the clique graph
Example
import pyagrum as gum
cg = gum.CliqueGraph()
c1, c2 = cg.addNode({0, 1, 2}), cg.addNode({1, 2, 3})
cg.addEdge(c1, c2)
cg.separator(c1, c2)
# {1, 2}
Class