MCPcopy Index your code
hub / github.com/avoidwork/tiny-graph / getNodeValue

Method getNodeValue

src/graph.js:73–82  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

71 }
72
73 getNodeValue (x) {
74 const n = this.nodes[x];
75 let result;
76
77 if (defined(n)) {
78 result = n.value;
79 }
80
81 return result;
82 }
83
84 neighbors (x) {
85 const n = this.nodes[x];

Callers 1

graph.jsFile · 0.45

Calls 1

definedFunction · 0.70

Tested by

no test coverage detected