Method
updateProperty
(id: ElementId, key: string, value: any)
Source from the content-addressed store, hash-verified
| 339 | } |
| 340 | |
| 341 | public updateProperty(id: ElementId, key: string, value: any): void { |
| 342 | const element = this.#vertices.get(id) ?? this.#edges.get(id); |
| 343 | if (element == null) { |
| 344 | throw new ElementNotFoundError(id); |
| 345 | } |
| 346 | (element.properties as any)[key] = value; |
| 347 | } |
| 348 | |
| 349 | /** |
| 350 | * Get the statistics of the graph. |
Callers
nothing calls this directly
Tested by
no test coverage detected