Adds a node computing a given custom operation. Custom operations can be created by the user as public structs implementing the [CustomOperationBody](../custom_ops/trait.CustomOperationBody.html). # Arguments `op` - custom operation `arguments` - vector of nodes used as input for the custom operation # Returns New custom operation node # Example ``` # use ciphercore_base::graphs::create_con
(&self, op: CustomOperation, arguments: Vec<Node>)
| 3282 | /// let n2 = g.custom_op(CustomOperation::new(Not {}), vec![n1]).unwrap(); |
| 3283 | /// ``` |
| 3284 | pub fn custom_op(&self, op: CustomOperation, arguments: Vec<Node>) -> Result<Node> { |
| 3285 | self.add_node(arguments, vec![], Operation::Custom(op)) |
| 3286 | } |
| 3287 | |
| 3288 | /// Adds a node which logs its input at runtime, and returns the input. |
| 3289 | /// This is intended to be used for debugging. |