(
&self,
timestamp: EventTime,
id: GID,
properties: Option<HashMap<String, Prop>>,
node_type: Option<&str>,
)
| 257 | /// RemoteNode: the new remote node |
| 258 | #[pyo3(signature = (timestamp, id, properties = None, node_type = None))] |
| 259 | pub fn create_node( |
| 260 | &self, |
| 261 | timestamp: EventTime, |
| 262 | id: GID, |
| 263 | properties: Option<HashMap<String, Prop>>, |
| 264 | node_type: Option<&str>, |
| 265 | ) -> Result<PyRemoteNode, ClientError> { |
| 266 | let graph = Arc::clone(&self.graph); |
| 267 | let node_type = node_type.map(|s| s.to_string()); |
| 268 | |
| 269 | let node = execute_async_task(move || async move { |
| 270 | graph |
| 271 | .create_node(timestamp, id, properties, node_type) |
| 272 | .await |
| 273 | })?; |
| 274 | |
| 275 | Ok(PyRemoteNode::new(node)) |
| 276 | } |
| 277 | |
| 278 | /// Adds properties to the remote graph. |
| 279 | /// |
nothing calls this directly
no test coverage detected