(sides: HierarchyNamedSides)
| 84 | /* With the direct neighbours unnamed the root alone has too many: fewer layers would not help, a narrower trace would. */ |
| 85 | const narrower = (direction: TraceDirectionWord) => (direction === 'both' ? 'trace one direction or fewer edge types' : 'trace fewer edge types'); |
| 86 | const 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 |
no test coverage detected