MCPcopy Create free account
hub / github.com/codemix/graph / push

Method push

packages/graph/src/Steps.ts:4986–4989  ·  view source on GitHub ↗
(item: T)

Source from the content-addressed store, hash-verified

4984 }
4985
4986 push(item: T): void {
4987 this.heap.push(item);
4988 this.bubbleUp(this.heap.length - 1);
4989 }
4990
4991 pop(): T | undefined {
4992 if (this.heap.length === 0) return undefined;

Callers 15

dijkstraMethod · 0.95
generateDocumentFunction · 0.45
tokenizeFunction · 0.45
buildPositionMapFunction · 0.45
createPostprocessorFunction · 0.45
registerListFunctionsMethod · 0.45
registerPathFunctionsMethod · 0.45
peg$f0Function · 0.45
peg$f1Function · 0.45
peg$f5Function · 0.45
peg$f34Function · 0.45

Calls 1

bubbleUpMethod · 0.95

Tested by 4

generateDocumentFunction · 0.36
executeQueryFunction · 0.36
flattenOnceFunction · 0.36
nextFunction · 0.36