edges

edges.updateBatch

updateBatch(updates: object[]): Promise<void>

Apply property updates to multiple edges in a single call.

Each entry is dispatched as an "UpdateEdge" command. All entries dispatched synchronously collapse into a single undo step (one auto-commit window), so api.history.undo() reverts the full batch in one click. Emits a single "edges:updated" event after all updates have been applied.

updatesobject[]Array of { id, properties } descriptors.

Returns: Promise<void>

Example

await api.edges.updateBatch([
  { id: "e1", properties: { weight: 1 } },
  { id: "e2", properties: { weight: 2 } },
]);