MCPcopy
hub / github.com/trekhleb/javascript-algorithms / getAllVertices

Method getAllVertices

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

* @return {GraphVertex[]}

()

Source from the content-addressed store, hash-verified

44 * @return {GraphVertex[]}
45 */
46 getAllVertices() {
47 return Object.values(this.vertices);
48 }
49
50 /**
51 * @return {GraphEdge[]}

Callers 15

getVerticesIndicesMethod · 0.95
getAdjacencyMatrixMethod · 0.95
Graph.test.jsFile · 0.80
dijkstraFunction · 0.80
topologicalSortFunction · 0.80
detectDirectedCycleFunction · 0.80
detectUndirectedCycleFunction · 0.80
bfTravellingSalesmanFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected