MCPcopy Create free account
hub / github.com/apache/maka / compareEdges

Function compareEdges

packages/runtime/src/stream-graph-trace.ts:354–360  ·  view source on GitHub ↗
(a: AgentGraphTraceEdge, b: AgentGraphTraceEdge)

Source from the content-addressed store, hash-verified

352}
353
354function compareEdges(a: AgentGraphTraceEdge, b: AgentGraphTraceEdge): number {
355 return (
356 compareAgentGraphIdentity(a.fromOperatorId, b.fromOperatorId) ||
357 compareAgentGraphIdentity(a.toOperatorId, b.toOperatorId) ||
358 compareAgentGraphIdentity(a.edgeId, b.edgeId)
359 );
360}
361
362function insertSorted(values: string[], value: string): void {
363 const index = values.findIndex((candidate) => compareAgentGraphIdentity(value, candidate) < 0);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected