MCPcopy
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

createGraphFunction · 0.80
checkNodesFunction · 0.80

Calls 2

computeXMethod · 0.95
computeYMethod · 0.95

Tested by 1

checkNodesFunction · 0.64