Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/avoidwork/tiny-graph
/ adjacent
Method
adjacent
src/graph.js:17–26 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
15
}
16
17
adjacent (x, y) {
18
const
n = this.nodes[x];
19
let
result = false;
20
21
if
(defined(n)) {
22
result = defined(n.edges[y]);
23
}
24
25
return
result;
26
}
27
28
del (x, y) {
29
let
result = false;
Callers
1
graph.js
File · 0.45
Calls
1
defined
Function · 0.70
Tested by
no test coverage detected