Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/loggerhead/json4u
/ layout
Method
layout
src/lib/graph/layout.ts:135–139 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
133
}
134
135
layout() {
136
const
{ ordered, levelMeta } = this.computeX();
137
this.computeY(levelMeta, rootMarker, 0);
138
return
{ ordered, levelMeta };
139
}
140
141
// use BFS to compute x of each node
142
computeX() {
Callers
2
createGraph
Function · 0.80
checkNodes
Function · 0.80
Calls
2
computeX
Method · 0.95
computeY
Method · 0.95
Tested by
1
checkNodes
Function · 0.64