(vertexId: ElementId)
| 382 | } |
| 383 | |
| 384 | protected getVertexMap(vertexId: ElementId): Y.Map<unknown> { |
| 385 | const [label, uuid] = parseElementId(vertexId); |
| 386 | const collection = this.getVertexCollectionMap(label); |
| 387 | const data = collection.get(uuid); |
| 388 | if (data == null) { |
| 389 | throw new VertexNotFoundError(vertexId); |
| 390 | } |
| 391 | return data as Y.Map<unknown>; |
| 392 | } |
| 393 | protected getEdgeMap(edgeId: ElementId): Y.Map<unknown> { |
| 394 | const [label, uuid] = parseElementId(edgeId); |
| 395 | const collection = this.getEdgeCollectionMap(label); |
no test coverage detected