You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nb::class_<Circuit>(m, "Circuit", "Circuits are the main class added by KLay, and require no arguments to construct.\n\n:code:`circuit = klay.Circuit()` ")
455
510
.def(nb::init<>())
456
511
.def("add_sdd_from_file", &Circuit::add_sdd_from_file, "filename"_a, "true_lits"_a = std::vector<int>(), "false_lits"_a = std::vector<int>(), "Add an SDD circuit from file.\n\n:param filename:\n\tPath to the :code:`.sdd` file on disk.\n:param true_lits:\n\tList of literals that are always true and should get propagated away.\n:param false_lits:\n\tList of literals that are always false and should get propagated away.")
457
512
.def("add_d4_from_file", &Circuit::add_d4_from_file, "filename"_a, "true_lits"_a = std::vector<int>(), "false_lits"_a = std::vector<int>(), "Add an NNF circuit in the D4 format from file.\n\n:param filename:\n\tPath to the :code:`.nnf` file on disk.\n:param true_lits:\n\tList of literals that are always true and should get propagated away.\n:param false_lits:\n\tList of literals that are always false and should get propagated away.")
458
513
.def("_get_indices", &Circuit::get_indices)
514
+
.def("disjoin", &Circuit::disjoin)
515
+
.def("conjoin", &Circuit::conjoin)
459
516
.def("nb_nodes", &Circuit::nb_nodes, "Number of nodes in the circuit.")
460
517
.def("nb_root_nodes", &Circuit::nb_root_nodes, "Number of root nodes in the circuit.")
461
518
.def("true_node", &Circuit::true_node, "Adds a true node to the circuit, and returns a pointer to this node.")
0 commit comments