Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/avoidwork/tiny-graph
/ getEdgeValue
Method
getEdgeValue
src/graph.js:62–71 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
60
}
61
62
getEdgeValue (x, y) {
63
const
n = this.nodes[x];
64
let
result;
65
66
if
(defined(n) && defined(n.edges[y])) {
67
result = n.edges[y];
68
}
69
70
return
result;
71
}
72
73
getNodeValue (x) {
74
const
n = this.nodes[x];
Callers
1
graph.js
File · 0.45
Calls
1
defined
Function · 0.70
Tested by
no test coverage detected