Returns the output node of the graph. # Returns Output node of the graph
(&self)
| 3202 | /// |
| 3203 | /// Output node of the graph |
| 3204 | pub fn get_output_node(&self) -> Result<Node> { |
| 3205 | let current_output_node = self.body.borrow().output_node.clone(); |
| 3206 | match current_output_node { |
| 3207 | Some(output_node) => Ok(output_node.upgrade()), |
| 3208 | None => Err(runtime_error!("Output node is not set")), |
| 3209 | } |
| 3210 | } |
| 3211 | |
| 3212 | /// Returns the ID of the graph. |
| 3213 | /// |