* The vertex that the edge originates from (source). * Named "outV" because this is the vertex the edge comes OUT of.
()
| 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]; |
no test coverage detected