CLG.variables
- CLG.variables()
Return the list of the variables in the CLG.
- Returns:
The list of the variables in the CLG.
- Return type:
list[GaussianVariable]
Example
import pyagrum.clg as gclg
clg = gclg.SEM.toclg("""
A = 2[1]
B = 1 + 0.5A[2]
C = 3 + B[1]
""")
[v.name() for v in clg.variables()]
# ['A', 'B', 'C']
Class