Skip to content
Snippets Groups Projects
Commit 9e1dc1f9 authored by Cyril Moineau's avatar Cyril Moineau Committed by Olivier BICHLER
Browse files

Add GraphView.clone and Node.clone to binding.

parent 43b467f6
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ void init_GraphView(py::module& m) {
:return: Whether any replacement has been made.
:rtype: bool
)mydelimiter")
.def("clone", &GraphView::clone)
.def("get_nodes", &GraphView::getNodes)
.def("get_node", &GraphView::getNode, py::arg("node_name"))
.def("forward_dims", &GraphView::forwardDims, py::arg("dims")=std::vector<std::vector<DimSize_t>>())
......
......@@ -28,7 +28,7 @@ void init_Node(py::module& m) {
R"mydelimiter(
Name of the Node.
)mydelimiter")
.def("clone", (NodePtr (Node::*)() const) &Node::clone)
.def("type", &Node::type,
R"mydelimiter(
Type of the node.
......
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