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
.def("nb_nodes", &Circuit::nb_nodes, "number of nodes in the circuit")
459
-
.def("nb_root_nodes", &Circuit::nb_root_nodes, "number of root nodes in the circuit")
460
-
.def("true_node", &Circuit::true_node, "adds a true node to the circuit, and returns a pointer")
461
-
.def("false_node", &Circuit::false_node, "adds a false node to the circuit, and returns a pointer")
462
-
.def("literal_node", &Circuit::literal_node, "adds a literal node to the circuit ,and returns a pointer")
463
-
.def("or_node", &Circuit::or_node, "children"_a, "adds an or node to the circuit, and returns a pointer")
464
-
.def("and_node", &Circuit::and_node, "children"_a, "adds an and node to the circuit, and returns a pointer")
465
-
.def("set_root", &Circuit::set_root, "root"_a, "marks a node pointer as root")
458
+
.def("nb_nodes", &Circuit::nb_nodes, "Number of nodes in the circuit.")
459
+
.def("nb_root_nodes", &Circuit::nb_root_nodes, "Number of root nodes in the circuit.")
460
+
.def("true_node", &Circuit::true_node, "Adds a true node to the circuit, and returns it as a pointer.")
461
+
.def("false_node", &Circuit::false_node, "Adds a false node to the circuit, and returns it as a pointer.")
462
+
.def("literal_node", &Circuit::literal_node, "Adds a literal node to the circuit, and returns it as a pointer.", "literal"_a)
463
+
.def("or_node", &Circuit::or_node, "children"_a, "Adds an :code:`or` node to the circuit, and returns it as a pointer.")
464
+
.def("and_node", &Circuit::and_node, "children"_a, "Adds an :code:`and` node to the circuit, and returns it as a pointer.")
465
+
.def("set_root", &Circuit::set_root, "root"_a, "Marks a node pointer as root.")
466
466
.def("remove_unused_nodes", &Circuit::remove_unused_nodes, "Removes unused non-root nodes from the circuit.\nCareful! This invalidates any NodePtr refering to an unused node (i.e., a node not conneected to a root node).");
467
467
468
468
m.def("to_dot_file", &to_dot_file, "circuit"_a, "filename"_a, "Write the given circuit as dot format to a file");
0 commit comments