pub fn initialize_graph_state(cx: FunctionContext<'_>) -> JsResult<'_, JsNumber>
Expand description

Create a new graph state

Arguments

  • cx - Neon FunctionContext
  • env - Neon Environment object extracted from context

Returns

  • JsResult<JsObject> - Neon JsObject containing the graph state

Errors

  • Throws a Neon error if the graph state cannot be created

Safety