MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / byOther

Function byOther

ui/src/lib/map-model.ts:515–515  ·  view source on GitHub ↗
(a: SidePort, b: SidePort)

Source from the content-addressed store, hash-verified

513 // Ports spread in the order the other end appears left-to-right, so bundles
514 // between two layers stay untangled instead of crossing inside the gap.
515 const byOther = (a: SidePort, b: SidePort) => a.other - b.other || a.id.localeCompare(b.id);
516 for (const [id, sides] of sidePorts) {
517 const node = nodesById.get(id);
518 if (!node) continue;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected