MCPcopy Index your code
hub / github.com/trekhleb/javascript-algorithms / getVertexByKey

Method getVertexByKey

src/data-structures/graph/Graph.js:31–33  ·  view source on GitHub ↗

* @param {string} vertexKey * @returns GraphVertex

(vertexKey)

Source from the content-addressed store, hash-verified

29 * @returns GraphVertex
30 */
31 getVertexByKey(vertexKey) {
32 return this.vertices[vertexKey];
33 }
34
35 /**
36 * @param {GraphVertex} vertex

Callers 5

addEdgeMethod · 0.95
deleteEdgeMethod · 0.95
findEdgeMethod · 0.95
Graph.test.jsFile · 0.80
bellmanFordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected