示例#1
0
def create_csp2():
    csp = CSP()
    csp.add_node("class1", ["domain1"])
    csp.add_node("class2", ["domain2", "domain3", "domain4"])
    csp.add_node("class3", ["domain5", "domain6"])
    return csp
示例#2
0
def create_csp():
    csp = CSP()
    csp.add_node(("physics", "John Smith"), [("648", (5, 60), "physics")])
    return csp
示例#3
0
def create_csp():
    csp = CSP()
    csp.add_node("class1", ["domain1"])
    return csp