CLGLearner.generate_XYZ
- static CLGLearner.generate_XYZ(l)
Find all the possible combinations of X, Y and Z.
- Returns:
All the possible combinations of X, Y and Z.
- Return type:
list[tuple[set[int],set[int]]]- Parameters:
l (
list[int])
Example
import pyagrum.clg as gclg
list(gclg.CLGLearner.generate_XYZ([0, 1, 2]))
# [(0, 1, set()), (0, 1, {2}), (0, 2, set()), (0, 2, {1}), (1, 2, set()), (1, 2, {0})]
Class