Applies [Context::retrieve_node] to the parent context and `this` graph. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{BIT, scalar_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let n = g.input(scalar_type(BIT)).unwrap(); n.set_name("input_node").unwrap(); assert!(n == g.retrieve_node("input_node").unwrap()); ```
(&self, name: &str)
| 1531 | /// assert!(n == g.retrieve_node("input_node").unwrap()); |
| 1532 | /// ``` |
| 1533 | pub fn retrieve_node(&self, name: &str) -> Result<Node> { |
| 1534 | self.get_context().retrieve_node(self.clone(), name) |
| 1535 | } |
| 1536 | |
| 1537 | /// Adds an input node to the graph and returns it. |
| 1538 | /// |