MCPcopy Create free account
hub / github.com/codemix/graph / inV

Method inV

packages/graph/src/Graph.ts:905–911  ·  view source on GitHub ↗

* The vertex that the edge points to (target). * Named "inV" because this is the vertex the edge goes INTO.

()

Source from the content-addressed store, hash-verified

903 * Named "inV" because this is the vertex the edge goes INTO.
904 */
905 public get inV(): Vertex<TSchema, any> {
906 const vertex = this.graph.getVertexById(this[$StoredElement].inV);
907 if (vertex == null) {
908 throw new GraphConsistencyError(`Vertex with id ${this[$StoredElement].inV} not found`);
909 }
910 return vertex;
911 }
912
913 /**
914 * The vertex that the edge originates from (source).

Calls 1

getVertexByIdMethod · 0.65

Tested by

no test coverage detected