(type: string, types?: readonly string[])
| 26 | } |
| 27 | /** Direction is a relationship property, never evidence of observed execution. */ |
| 28 | export function isDirectedEdge(type: string, types?: readonly string[]): boolean { |
| 29 | if (!types?.length) { |
| 30 | const kind = normalizeEdgeType(type); |
| 31 | return Object.hasOwn(EDGE_TYPE_COLORS, kind) && kind !== 'RELATIONSHIPS' && !symmetric.has(kind); |
| 32 | } |
| 33 | return constituents(type, types).every(kind => Object.hasOwn(EDGE_TYPE_COLORS, kind) && kind !== 'RELATIONSHIPS' && !symmetric.has(kind)); |
| 34 | } |
| 35 | /** Offset each edge deterministically so the graph does not flash in unison. */ |
| 36 | export function edgePhase(id: string | number): number { |
| 37 | let hash = 2166136261; |
no test coverage detected