MCPcopy Create free account
hub / github.com/Pometry/Raphtory / create_node

Method create_node

raphtory-graphql/src/python/client/remote_graph.rs:259–276  ·  view source on GitHub ↗
(
        &self,
        timestamp: EventTime,
        id: GID,
        properties: Option<HashMap<String, Prop>>,
        node_type: Option<&str>,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 3

execute_async_taskFunction · 0.85
to_stringMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected