MCPcopy Create free account

hub / github.com/codemix/graph / functions

Functions1,533 in github.com/codemix/graph

↓ 2 callersFunctionpeg$parseWhitespace
()
packages/graph/src/grammar.js:18009
↓ 2 callersFunctionpeg$parseYIELD
()
packages/graph/src/grammar.js:16322
↓ 2 callersMethodplus
* Add this duration to another duration.
packages/graph/src/TemporalTypes.ts:1347
↓ 2 callersFunctionprepareQuery
* Prepare a query for matching.
packages/text-search/src/matcher.ts:103
↓ 2 callersMethodpush
* Push an element into the storage, updating properties individually if the * element already exists. This ensures that updateProperty is called fo
packages/graph/src/AsyncGraph.ts:151
↓ 2 callersMethodreconstructPath
* Reconstruct the path from the previous map.
packages/graph/src/Steps.ts:5266
↓ 2 callersMethodremove
* Remove a value from the index. * @param elementId The ID of the element. * @param value The property value to remove.
packages/graph/src/indexes/types.ts:35
↓ 2 callersFunctionresolveOrderItem
* Resolve an ORDER BY item to a direction config for OrderStep. * Handles both property access (n.name) and alias references (value). * * @param us
packages/graph/src/astToSteps.ts:3092
↓ 2 callersFunctionresolveOrderValue
( item: unknown, key: string | undefined, expression?: ConditionValue, context?: QueryContext, )
packages/graph/src/Steps.ts:3995
↓ 2 callersFunctionresolveProjectedOrderValue
( path: TraversalPath<any, any, any>, key: string | undefined, )
packages/graph/src/Steps.ts:7107
↓ 2 callersFunctionresultsMatch
(actual: unknown[], expected: unknown[])
packages/graph/src/test/tck/tckHelpers.ts:985
↓ 2 callersFunctionsetCurrentGraphSource
(source: GraphSource<any>)
packages/graph/src/Steps.ts:67
↓ 2 callersFunctionsplitASTConditionByVariables
* Split an AST condition into early and late parts based on which variables are referenced. * Early conditions only reference variables in the allowe
packages/graph/src/astToSteps.ts:1841
↓ 2 callersFunctionstringTokensToString
(tokens: readonly StepStringToken[])
packages/graph/src/Steps.ts:186
↓ 2 callersMethodsum
* Sum a numeric property across all items in the path. * Non-numeric or missing values are ignored.
packages/graph/src/Traversals.ts:201
↓ 2 callersFunctionunionAstToSteps
(unionQuery: UnionQuery)
packages/graph/src/astToSteps.ts:478
↓ 2 callersMethodvalueOf
()
packages/graph/src/test/Comparator.test.ts:159
↓ 1 callersMethod#computeAggregate
( paths: unknown[], aggregate: | "COUNT" | "SUM" | "AVG" | "MIN" | "MAX"
packages/graph/src/Steps.ts:3163
↓ 1 callersMethod#computeGroupKey
(item: unknown, groupByItems: GroupByStepConfig["groupByItems"])
packages/graph/src/Steps.ts:3066
↓ 1 callersMethod#createIndex
* Create an index instance based on configuration.
packages/graph/src/indexes/IndexManager.ts:302
↓ 1 callersMethod#extractLabel
(item: unknown)
packages/graph/src/Steps.ts:4814
↓ 1 callersMethod#extractProperty
(value: unknown, property: string)
packages/graph/src/Steps.ts:4673
↓ 1 callersMethod#extractValue
(pathOrValue: unknown)
packages/graph/src/Steps.ts:4662
↓ 1 callersMethod#findFirstEqual
* Find the first entry with exactly this value.
packages/graph/src/indexes/BTreeIndex.ts:84
↓ 1 callersMethod#formatOffset
* Format timezone offset as +HH:MM or -HH:MM.
packages/graph/src/TemporalTypes.ts:447
↓ 1 callersMethod#formatOffset
* Format timezone offset as +HH:MM or -HH:MM.
packages/graph/src/TemporalTypes.ts:971
↓ 1 callersMethod#getDeduplicationKey
* Generate a deduplication key for a value. * - Primitives: use the value directly * - Vertices/Edges: use their id property * - Arrays of pr
packages/graph/src/Steps.ts:3888
↓ 1 callersMethod#performIndexLookup
* Perform the actual index lookup based on the hint.
packages/graph/src/Steps.ts:2446
↓ 1 callersMethod#tryIndexLookup
* Try to use an index for filtering. * Returns an array of filtered paths if an index was used, null otherwise. * @param inputArray Must be a no
packages/graph/src/Steps.ts:2349
↓ 1 callersMethodadd
(elementId: ElementId, value: unknown)
packages/graph/src/indexes/BTreeIndex.ts:92
↓ 1 callersMethodadd
(elementId: ElementId, value: unknown)
packages/graph/src/indexes/HashIndex.ts:32
↓ 1 callersMethodadd
(elementId: ElementId, value: unknown)
packages/graph/src/indexes/FullTextIndex.ts:55
↓ 1 callersMethodaddEdge
(edge: StoredEdge)
packages/graph/src/GraphStorage.ts:276
↓ 1 callersMethodaddVertex
(vertex: StoredVertex)
packages/graph/src/GraphStorage.ts:227
↓ 1 callersFunctionanalyzeConditionRecursive
* Recursively analyze a condition tree.
packages/graph/src/indexes/QueryPlanner.ts:80
↓ 1 callersFunctionapplyUnskips
* Apply changes to unskip passing tests
packages/graph/scripts/tck-audit.ts:213
↓ 1 callersMethodbfs
* BFS algorithm for unweighted shortest path. * Time complexity: O(V + E)
packages/graph/src/Steps.ts:5123
↓ 1 callersMethodbothV
* Get the vertices that are connected to the edges by both incoming and outgoing edges.
packages/graph/src/Traversals.ts:1878
↓ 1 callersMethodbubbleDown
(index: number)
packages/graph/src/Steps.ts:5012
↓ 1 callersMethodbubbleUp
(index: number)
packages/graph/src/Steps.ts:5001
↓ 1 callersMethodbuildMessage
(expected, found)
packages/graph/src/grammar.js:46
↓ 1 callersFunctionbuildReturnAliasMap
* Build a map of aliases from RETURN clause items. * Maps alias name → underlying variable/property info.
packages/graph/src/astToSteps.ts:3019
↓ 1 callersFunctionbuildWithAliasMap
* Build a map of aliases from WITH clause items. * Maps alias name → underlying variable/property info.
packages/graph/src/astToSteps.ts:3052
↓ 1 callersFunctioncalculateConsecutiveBonus
* Calculate bonus for consecutive term matches (phrase-like matching).
packages/text-search/src/matcher.ts:186
↓ 1 callersFunctioncalculatePositionScore
* Calculate position-based score (terms at start of doc score higher).
packages/text-search/src/matcher.ts:221
↓ 1 callersFunctioncalculateTermScore
* Calculate BM25-style score for term matching. * * For single-document matching without corpus statistics, * we use a simplified BM25 formula that
packages/text-search/src/matcher.ts:136
↓ 1 callersFunctionclearCurrentGraphSource
()
packages/graph/src/Steps.ts:85
↓ 1 callersFunctioncompareArrays
(a: unknown[], b: unknown[])
packages/graph/src/Comparator.ts:169
↓ 1 callersMethodcomputeSingleAggregate
( paths: readonly TraversalPath<any, any, any>[], item: Extract<WithItemConfig, { type: "aggregate" }>
packages/graph/src/Steps.ts:6958
↓ 1 callersFunctionconvertEdgePattern
* Convert an edge pattern to steps, handling quantifiers for variable-length paths.
packages/graph/src/astToSteps.ts:1642
↓ 1 callersFunctionconvertListExpression
* Convert a ListExpression AST node to a ForeachListExpression.
packages/graph/src/astToSteps.ts:1119
↓ 1 callersFunctionconvertNestedPropertyValue
* Convert a single property value, handling NestedMap, ListLiteral, and ParameterRef.
packages/graph/src/astToSteps.ts:594
↓ 1 callersFunctionconvertParenthesizedPathPattern
* Convert a parenthesized path pattern to steps. * Handles optional inline WHERE condition and quantifiers. * * Parenthesized path patterns allow g
packages/graph/src/astToSteps.ts:1773
↓ 1 callersFunctionconvertQuantifiedEdge
* Convert a quantified edge pattern to a RepeatStep. * For variable-length paths, we need to repeat both the edge traversal and vertex traversal.
packages/graph/src/astToSteps.ts:1700
↓ 1 callersFunctionconvertReturnClause
* Convert RETURN clause to appropriate steps. * For mutation-only queries without RETURN, adds DrainStep to consume results.
packages/graph/src/astToSteps.ts:2603
↓ 1 callersFunctionconvertSetOperationToStep
* Convert a SetOperation (from FOREACH) into a SetStep. * Note: FOREACH SET operations currently only support individual property assignments, * not
packages/graph/src/astToSteps.ts:1155
↓ 1 callersFunctionconvertUnwindExpression
* Convert an UNWIND expression AST node to a StepUnwindExpression.
packages/graph/src/astToSteps.ts:918
↓ 1 callersFunctionconvertWithItem
* Convert a WITH item AST node to a WithItemConfig.
packages/graph/src/astToSteps.ts:828
↓ 1 callersFunctioncreateGraph
()
packages/graph/src/test/distinct-aggregates.test.ts:35
↓ 1 callersFunctioncreateGraph
()
packages/graph/src/test/isLabeled.test.ts:63
↓ 1 callersFunctioncreateGraph
()
packages/graph/src/test/caseExpression.test.ts:37
↓ 1 callersFunctioncreateGraph
()
packages/graph/src/test/labelExpressions.test.ts:66
↓ 1 callersFunctioncreateGraphObserver
(graph: YGraph<TSchema>)
packages/y-graph-storage/src/YGraph.ts:90
↓ 1 callersFunctioncreateLabelCondition
* Create a condition that checks if an element has one of the specified labels.
packages/graph/src/astToSteps.ts:1962
↓ 1 callersFunctioncreateLazyPropertyDescriptors
(schema: ElementSchema)
packages/y-graph-storage/src/LazyPropertyDictionary.ts:28
↓ 1 callersFunctioncreateNodeLabelCondition
* Create a label condition from either simple labels or a label expression. * Returns null if no label filtering is needed.
packages/graph/src/astToSteps.ts:2021
↓ 1 callersFunctioncreatePostprocessor
* Creates a function which takes the array of values returned by the graph traversal * and returns an object with the values mapped to the variable n
packages/graph/src/index.ts:177
↓ 1 callersFunctioncreatePredicatesForTraversalSteps
(steps: readonly KnownSteps[])
packages/y-graph-storage/src/YGraph.ts:300
↓ 1 callersFunctioncreateTestGraph
()
packages/graph/src/test/return-only.test.ts:43
↓ 1 callersFunctioncreateTestGraph
()
packages/graph/src/test/date-temporal.test.ts:45
↓ 1 callersFunctioncreateTestGraph
()
packages/graph/src/test/duration-temporal.test.ts:51
↓ 1 callersFunctiondeepEqual
* Deep equality check for comparing TCK results.
packages/graph/src/test/tck/tckHelpers.ts:1003
↓ 1 callersMethoddijkstra
* Dijkstra's algorithm for weighted shortest path. * Time complexity: O((V + E) log V) with a binary heap.
packages/graph/src/Steps.ts:5181
↓ 1 callersFunctionendsWithDoubleConsonant
* Check if stem ends with a double consonant
packages/text-search/src/stemmer.ts:58
↓ 1 callersMethodequals
* Compare two durations for equality. * Note: Durations with different representations may be equal (e.g., P14D = P2W)
packages/graph/src/TemporalTypes.ts:1404
↓ 1 callersFunctionevaluateArithmeticOp
* Evaluate an arithmetic operation.
packages/graph/src/Steps.ts:1151
↓ 1 callersFunctionevaluateBinaryCondition
( path: TraversalPath<any, any, any>, condition: BinaryCondition, context?: QueryContext, )
packages/graph/src/Steps.ts:2162
↓ 1 callersFunctionevaluateConditionFn
( path: TraversalPath<any, any, any>, condition: Condition, context?: QueryContext, )
packages/graph/src/Steps.ts:5393
↓ 1 callersFunctionexecuteQuery
(graph: Graph<GraphSchema>, queryString: string)
packages/graph/src/test/return-only.test.ts:47
↓ 1 callersFunctionexecuteQuery
(graph: Graph<GraphSchema>, queryString: string)
packages/graph/src/test/date-temporal.test.ts:49
↓ 1 callersFunctionexecuteQuery
(queryString: string)
packages/graph/src/test/ShortestPath.test.ts:242
↓ 1 callersFunctionexecuteQuery
(graph: Graph<GraphSchema>, queryString: string)
packages/graph/src/test/duration-temporal.test.ts:55
↓ 1 callersFunctionextractBoundVariables
* Extract all bound variables from a query's MATCH, WITH, and UNWIND clauses.
packages/graph/src/astToSteps.ts:2470
↓ 1 callersFunctionextractConditionsForVariable
* Extract conditions that specifically reference a given variable.
packages/graph/src/astToSteps.ts:1291
↓ 1 callersFunctionextractProperties
(value: Record<string, unknown>)
packages/graph/src/test/tck/tckHelpers.ts:1058
↓ 1 callersFunctionextractRemainingCondition
( condition: Condition, usedHint: IndexHint, )
packages/graph/src/indexes/QueryPlanner.ts:259
↓ 1 callersFunctionextractSkippedTests
* Extract skipped tests from a file
packages/graph/scripts/tck-audit.ts:106
↓ 1 callersFunctionfindTestFiles
* Find all test files in the TCK directory
packages/graph/scripts/tck-audit.ts:87
↓ 1 callersFunctionflattenOnce
(arr: any[])
packages/graph/src/test/debug-edges.test.ts:61
↓ 1 callersFunctionflattenSimpleOrChain
(expr)
packages/graph/src/grammar.js:18256
↓ 1 callersMethodfunctionNames
* Get all registered function names.
packages/graph/src/FunctionRegistry.ts:151
↓ 1 callersFunctiongenerateReport
* Generate markdown report
packages/graph/scripts/tck-audit.ts:244
↓ 1 callersMethodget
* Look up a function by name (case-insensitive).
packages/graph/src/FunctionRegistry.ts:106
↓ 1 callersMethodgetAllIndexConfigs
* Get all index configurations from the schema. * Useful for prebuilding all indexes.
packages/graph/src/indexes/IndexManager.ts:614
↓ 1 callersMethodgetAllUniqueIndexConfigs
* Get all unique index configurations from the schema. * Useful for understanding what uniqueness constraints exist.
packages/graph/src/indexes/IndexManager.ts:560
↓ 1 callersMethodgetDeduplicationKey
* Generate a key for deduplication. * For UNION, we primarily care about the result values, not the full path structure. * After RETURN, values
packages/graph/src/Steps.ts:4159
↓ 1 callersMethodgetEdgeById
( id: ElementId, options?: { throwIfNotFound?: boolean }, )
packages/graph/src/Graph.ts:454
↓ 1 callersMethodgetEdges
( ...labels: TEdgeLabel[] )
packages/graph/src/Graph.ts:468
↓ 1 callersFunctiongetLastDayOfMonth
* Helper to get the last day of a month.
packages/graph/src/TemporalTypes.ts:1417
↓ 1 callersMethodgetPathKey
( path: TraversalPath<any, any, any>, items: readonly WithItemConfig[], )
packages/graph/src/Steps.ts:7042
← previousnext →501–600 of 1,533, ranked by callers