Skip to content
Snippets Groups Projects
Commit 46767f41 authored by Vincent Templier's avatar Vincent Templier
Browse files

Add getChildren and getParents binding methods for Node

parent 8aa8f001
No related branches found
No related tags found
No related merge requests found
Pipeline #31871 passed
...@@ -136,6 +136,16 @@ void init_Node(py::module& m) { ...@@ -136,6 +136,16 @@ void init_Node(py::module& m) {
:rtype: int :rtype: int
)mydelimiter") )mydelimiter")
.def("get_parents", &Node::getParents,
R"mydelimiter(
Get parents.
)mydelimiter")
.def("get_children", (std::set<std::shared_ptr<Node>> (Node::*)() const) &Node::getChildren,
R"mydelimiter(
Get children.
)mydelimiter")
.def("__call__", &Node::operator(), py::arg("connectors")); .def("__call__", &Node::operator(), py::arg("connectors"));
} }
} // namespace Aidge } // namespace Aidge
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment