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

Method outV

packages/graph/src/Graph.ts:917–923  ·  view source on GitHub ↗

* The vertex that the edge originates from (source). * Named "outV" because this is the vertex the edge comes OUT of.

()

Source from the content-addressed store, hash-verified

915 * Named "outV" because this is the vertex the edge comes OUT of.
916 */
917 public get outV(): Vertex<TSchema, any> {
918 const vertex = this.graph.getVertexById(this[$StoredElement].outV);
919 if (vertex == null) {
920 throw new GraphConsistencyError(`Vertex with id ${this[$StoredElement].outV} not found`);
921 }
922 return vertex;
923 }
924
925 public toJSON(): StoredEdge {
926 return this[$StoredElement];

Callers 3

Traversals.test.tsFile · 0.45

Calls 1

getVertexByIdMethod · 0.65

Tested by

no test coverage detected