MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sideOf

Function sideOf

graph-ui/src/galaxy/graph-scope.ts:530–530  ·  view source on GitHub ↗
(node: GraphNode)

Source from the content-addressed store, hash-verified

528 let bandHead: HierarchyBand | undefined;
529 if (band.length) {
530 const sideOf = (node: GraphNode) => side.get(parent.get(node.id)?.id ?? -1) ?? 0;
531 band.sort((a, b) => level.get(a.id)! - level.get(b.id)! || sideOf(a) - sideOf(b) || byParent(a, b));
532 band.forEach((node, index) => row.set(node.id, index));
533 const bandNamed = names === 'all';

Callers 1

scopedHierarchyFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected