Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/avoidwork/tiny-graph
/ adjacent
Method
adjacent
lib/tiny-graph.js:37–46 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
35
}
36
37
adjacent (x, y) {
38
const
n = this.nodes[x];
39
let
result = false;
40
41
if
(defined(n)) {
42
result = defined(n.edges[y]);
43
}
44
45
return
result;
46
}
47
48
del (x, y) {
49
let
result = false;
Callers
nothing calls this directly
Calls
1
defined
Function · 0.70
Tested by
no test coverage detected