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

Function namedFew

graph-ui/src/galaxy/galaxy-strings.ts:86–88  ·  view source on GitHub ↗
(sides: HierarchyNamedSides)

Source from the content-addressed store, hash-verified

84/* With the direct neighbours unnamed the root alone has too many: fewer layers would not help, a narrower trace would. */
85const narrower = (direction: TraceDirectionWord) => (direction === 'both' ? 'trace one direction or fewer edge types' : 'trace fewer edge types');
86const namedFew = (sides: HierarchyNamedSides) => ['the root',
87 sides.incoming > 0 ? `its ${count(sides.incoming, 'incoming neighbour', 'incoming neighbours')}` : '',
88 sides.outgoing > 0 ? `its ${count(sides.outgoing, 'outgoing neighbour', 'outgoing neighbours')}` : ''].filter(Boolean).join(' and ');
89
90/**
91 * The hierarchy of a Galaxy scope (hand test K5): what the columns mean, per

Callers 1

galaxy-strings.tsFile · 0.85

Calls 1

countFunction · 0.70

Tested by

no test coverage detected