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

Function isDirectedEdge

graph-ui/src/graph/edge-style.ts:28–34  ·  view source on GitHub ↗
(type: string, types?: readonly string[])

Source from the content-addressed store, hash-verified

26}
27/** Direction is a relationship property, never evidence of observed execution. */
28export 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. */
36export function edgePhase(id: string | number): number {
37 let hash = 2166136261;

Callers 6

createEdgeGeometryFunction · 0.90
ArchitectureSceneFunction · 0.90
SystemArchitectureSceneFunction · 0.90
edge-style.test.tsFile · 0.90
edgePulseGeometryFunction · 0.90
edgeArrowGeometryFunction · 0.90

Calls 2

normalizeEdgeTypeFunction · 0.85
constituentsFunction · 0.85

Tested by

no test coverage detected