MCPcopy Create free account

hub / github.com/codemix/graph / functions

Functions1,533 in github.com/codemix/graph

↓ 4,967 callersFunctionexecuteTckQuery
( graph: Graph<TckSchema>, queryString: string, params?: QueryParams, )
packages/graph/src/test/tck/tckHelpers.ts:967
↓ 2,583 callersFunctioncreateTckGraph
()
packages/graph/src/test/tck/tckHelpers.ts:952
↓ 1,177 callersMethodaddVertex
* Add a vertex to the graph.
packages/graph/src/Graph.ts:189
↓ 1,024 callersMethodpush
(item: T)
packages/graph/src/Steps.ts:4986
↓ 719 callersMethodget
Get a component property of this temporal value
packages/graph/src/TemporalTypes.ts:13
↓ 628 callersFunctionpeg$parse_
()
packages/graph/src/grammar.js:17990
↓ 496 callersFunctionpeg$fail
(expected)
packages/graph/src/grammar.js:2481
↓ 452 callersFunctionastToSteps
(query: Query)
packages/graph/src/astToSteps.ts:133
↓ 450 callersMethodaddEdge
* Add an edge between two vertices. * @param outV The source vertex (where the edge originates from). * @param label The label of the edge. *
packages/graph/src/Graph.ts:201
↓ 439 callersMethodtraverse
( _source: GraphSource<any>, input: Iterable<unknown>, _context?: QueryContext, )
packages/graph/src/Steps.ts:2643
↓ 392 callersMethodV
* Start a new traversal from the vertices in the graph. * @param ids The ids of the vertices to get.
packages/graph/src/Traversals.ts:489
↓ 376 callersMethodmap
* Map each edge in the traversal to a new value. * @param mapper A function that maps the path to a new value.
packages/graph/src/Traversals.ts:2298
↓ 366 callersFunctioncreateTraverser
(steps: readonly Step<any>[])
packages/graph/src/Steps.ts:158
↓ 333 callersMethodvalues
* Get the values of the elements in the traversal.
packages/graph/src/Traversals.ts:2234
↓ 157 callersMethodhasLabel
* Filter the edges keeping only the ones with the specified labels. * @param labels The labels to filter the edges by.
packages/graph/src/Traversals.ts:1908
↓ 143 callersFunctionexecuteQuery
( graph: Graph<GraphSchema>, queryString: string, debug: boolean = false, )
packages/graph/src/test/testHelpers.ts:51
↓ 143 callersFunctionmakeType
(_defaultValue: T)
packages/graph/src/test/newFeatures.test.ts:12
↓ 136 callersFunctiongetLabel
(value: Record<string, unknown>)
packages/graph/src/test/tck/tckHelpers.ts:1073
↓ 131 callersMethodgetVertices
* Get all vertices, optionally filtered by labels. * @param labels The labels to filter by.
packages/graph/src/Graph.ts:152
↓ 127 callersMethodhas
(...args: any[])
packages/graph/src/Traversals.ts:1952
↓ 126 callersFunctionexecuteQuery
(graph: Graph<TestSchema>, query: string)
packages/graph/src/test/orderByAndForeach.test.ts:59
↓ 126 callersFunctionmakeType
(_defaultValue: T)
packages/graph/src/test/newFeaturesAggrXorVarLen.test.ts:11
↓ 119 callersFunctionpeg$literalExpectation
(text, ignoreCase)
packages/graph/src/grammar.js:2400
↓ 113 callersFunctiongetProperty
(value: Record<string, unknown>, name: string)
packages/graph/src/test/tck/tckHelpers.ts:1123
↓ 111 callersFunctionstem
(word: string)
packages/text-search/src/stemmer.ts:300
↓ 103 callersMethodadd
* Add a value to the index. * @param elementId The ID of the element. * @param value The property value to index.
packages/graph/src/indexes/types.ts:28
↓ 99 callersMethodtoString
Convert to ISO string representation
packages/graph/src/TemporalTypes.ts:15
↓ 96 callersMethodas
* Add a label to the last element in the path. * @param label The label to add to the last element in the path.
packages/graph/src/Traversals.ts:1895
↓ 91 callersMethodout
* Get the vertices that are connected to the vertices by outgoing edges. * @param edgeLabels The labels of the edges to get. If no labels are provi
packages/graph/src/Traversals.ts:636
↓ 89 callersFunctionevaluateFunction
( name: string, args: readonly unknown[], path: TraversalPath<any, any, any>, distinct = false, )
packages/graph/src/FunctionRegistry.ts:1670
↓ 79 callersFunctionmakeType
(_defaultValue: T)
packages/graph/src/test/testHelpers.ts:17
↓ 78 callersMethodregister
* Register a function definition.
packages/graph/src/FunctionRegistry.ts:98
↓ 73 callersFunctioncompare
(a: T, b: T)
packages/graph/src/Comparator.ts:53
↓ 70 callersFunctionpeg$parseIdentifierPart
()
packages/graph/src/grammar.js:17773
↓ 68 callersMethodshortestPath
* Start a shortest path traversal. * Uses BFS (Breadth-First Search) for unweighted graphs - O(V + E). * Uses Dijkstra's algorithm for weighted
packages/graph/src/Traversals.ts:827
↓ 68 callersMethodto
( targetOrConditionOrTraversal: | ElementId | Condition | ((parent: VertexTraversal<TSch
packages/graph/src/Traversals.ts:1710
↓ 65 callersMethodfilter
* Filter the values in the traversal using a predicate. * @param predicate A function that returns true for values to keep.
packages/graph/src/Traversals.ts:1309
↓ 64 callersMethodthrough
* Specify edge labels to traverse through. * @param edgeLabels The edge labels to traverse.
packages/graph/src/Traversals.ts:1751
↓ 63 callersMethodwith
* Create a new path with the value and labels added. * @param value The value to add to the path. * @param labels The labels to add to the path.
packages/graph/src/Traversals.ts:109
↓ 62 callersMethodby
* Order the edges in the traversal by a property. * @param propertyName The name of the property to order by. * @param direction The direction t
packages/graph/src/Traversals.ts:2327
↓ 59 callersMethodaddVertex
(...args: any[])
packages/graph/src/Graph.ts:513
↓ 58 callersFunctionpeg$parseExpressionIdentifier
()
packages/graph/src/grammar.js:17640
↓ 57 callersMethodrepeat
* Repeat the traversal until a sub-traversal returns at least one result, or a certain number of times have been repeated. * @param getTraversal A
packages/graph/src/Traversals.ts:789
↓ 56 callersFunctioncreateFlexibleGraph
()
packages/graph/src/test/testHelpers.ts:198
↓ 54 callersFunctionsetQueryParams
(params: QueryParams)
packages/graph/src/Steps.ts:41
↓ 52 callersFunctionclearQueryParams
()
packages/graph/src/Steps.ts:58
↓ 52 callersMethodorder
* Order the edges in the traversal.
packages/graph/src/Traversals.ts:2310
↓ 50 callersFunctioncreateMatcher
(query: string, options: MatcherOptions = {})
packages/text-search/src/matcher.ts:267
↓ 42 callersFunctionquery
(q: string)
packages/graph/src/test/return-only.test.ts:55
↓ 41 callersFunctionquery
(q: string)
packages/graph/src/test/date-temporal.test.ts:56
↓ 40 callersMethodgetEdges
* Get all edges, optionally filtered by labels. * @param labels The labels to filter by.
packages/graph/src/Graph.ts:174
↓ 40 callersFunctionpeg$parseArithmeticExpression
()
packages/graph/src/grammar.js:9465
↓ 38 callersMethodselect
* Select the labeled elements in the path * @param pathLabels The labels to select.
packages/graph/src/Traversals.ts:2217
↓ 38 callersMethodtimes
* Repeat the traversal a certain number of times. * @param times The number of times to repeat the traversal.
packages/graph/src/Traversals.ts:1612
↓ 37 callersMethodoutE
* Get the edges that are connected to the vertices by outgoing edges. * @param edgeLabels The labels of the edges to get. If no labels are provided
packages/graph/src/Traversals.ts:695
↓ 37 callersFunctionsetupSetClauseGraph
()
packages/graph/src/test/orderByAndForeach.test.ts:125
↓ 36 callersMethodupdateProperty
* Update a property of a vertex or edge. * @param id The id of the vertex or edge. * @param key The key of the property. * @param value The v
packages/graph/src/GraphStorage.ts:113
↓ 35 callersFunctionexecuteQuery
( graph: Graph<GraphSchema>, queryString: string, debug: boolean = false, )
packages/graph/src/test/queryExecution.test.ts:24
↓ 35 callersMethodfromString
* Create a DateValue from an ISO date string (YYYY-MM-DD).
packages/graph/src/TemporalTypes.ts:60
↓ 35 callersFunctionpeg$parsePropertyIdentifier
()
packages/graph/src/grammar.js:17683
↓ 34 callersFunctiondumpSteps
(steps: readonly any[])
packages/graph/src/test/testHelpers.ts:43
↓ 33 callersFunctioncreateComprehensiveGraph
()
packages/graph/src/test/testHelpers.ts:284
↓ 33 callersFunctionexecuteQuery
(graph: Graph<GraphSchema>, queryString: string)
packages/graph/src/test/stringPredicatesAndReturnAll.test.ts:24
↓ 33 callersFunctionparseQueryToSteps
( queryString: string, options?: ParseQueryToStepsOptions, )
packages/graph/src/index.ts:145
↓ 33 callersMethodproperty
* Get a property of the value in the path. * @param propertyName The name of the property to get.
packages/graph/src/Traversals.ts:124
↓ 32 callersMethodE
* Start a new traversal from the edges in the graph. * @param ids The ids of the edges to get.
packages/graph/src/Traversals.ts:506
↓ 32 callersFunctioncreateGraph
()
packages/graph/src/test/stringPredicatesAndReturnAll.test.ts:63
↓ 32 callersFunctioncreateMockPath
(properties: Record<string, any>)
packages/graph/src/test/orderByAndForeach.test.ts:67
↓ 32 callersMethodstartsWith
* Filter edges where the specified property starts with the given value. * @param propertyName The name of the property to check. * @param value
packages/graph/src/Traversals.ts:2050
↓ 31 callersMethodgetOutgoingEdges
* Get all outgoing edges of a vertex. * @param vertexId The id of the vertex.
packages/graph/src/Graph.ts:132
↓ 31 callersMethodlookup
* Look up element IDs by exact value match. * O(1) operation. * * @param value The value to look up. * @returns Set of element IDs with th
packages/graph/src/indexes/HashIndex.ts:75
↓ 30 callersFunctioncreateGraph
()
packages/graph/src/test/stringPredicateTraversals.test.ts:54
↓ 29 callersFunctioncreateBinaryTree
(graph: Graph<TckSchema>)
packages/graph/src/test/tck/clauses/Match5.test.ts:15
↓ 29 callersFunctionmakeType
(_defaultValue: T)
packages/graph/src/test/generateSchemaGuide.test.ts:11
↓ 28 callersFunctiontokenize
(text: string, options: TokenizeOptions = {})
packages/text-search/src/tokenizer.ts:89
↓ 27 callersMethodendsWith
* Filter edges where the specified property ends with the given value. * @param propertyName The name of the property to check. * @param value T
packages/graph/src/Traversals.ts:2068
↓ 27 callersMethodinvoke
* Invoke a function with the given context.
packages/graph/src/FunctionRegistry.ts:120
↓ 27 callersMethodproperties
(...propertyNames: TPropertyNames)
packages/graph/src/Traversals.ts:2269
↓ 26 callersFunctionanyAstToSteps
(ast: Query | UnionQuery | MultiStatement)
packages/graph/src/astToSteps.ts:490
↓ 26 callersMethodunfold
* Unfold each value in the traversal.
packages/graph/src/Traversals.ts:1321
↓ 25 callersFunctioncompareObjects
(a: object, b: object)
packages/graph/src/Comparator.ts:118
↓ 25 callersMethodgetVertexById
* Get a specific vertex by its unique identifier. * @param id The id of the vertex. * @param options.throwIfNotFound If true, throws VertexNotFo
packages/graph/src/Graph.ts:139
↓ 25 callersMethodhasProperty
(key: string, value: any = undefined)
packages/graph/src/Graph.ts:885
↓ 25 callersFunctionsetupQueryExecutionGraph
()
packages/graph/src/test/queryExecution.test.ts:38
↓ 24 callersFunctioncreateDemoGraph
( graph = new Graph<DemoSchema>({ schema: demoSchema, storage: new InMemoryGraphStorage(), valid
packages/graph/src/getDemoGraph.ts:45
↓ 24 callersMethodgetEdgeById
* Get a specific edge by its unique identifier. * @param id The id of the edge. * @param options.throwIfNotFound If true, throws EdgeNotFoundErr
packages/graph/src/Graph.ts:161
↓ 24 callersMethodoutV
* The vertex that the edge originates from (source). * Named "outV" because this is the vertex the edge comes OUT of.
packages/graph/src/Graph.ts:917
↓ 24 callersFunctionrankDocuments
( query: string, documentsOrConfig: T[] | RankConfig<T, K>, documentsOrOptions?: T[] | MatcherOptions,
packages/text-search/src/matcher.ts:437
↓ 22 callersFunctioncreateTestGraph
()
packages/graph/src/test/negativeAndRegex.test.ts:7
↓ 22 callersFunctionmakeType
(_defaultValue: T)
packages/graph/src/test/createManufacturingGraph.ts:6
↓ 22 callersFunctionpeg$parseAS
()
packages/graph/src/grammar.js:15767
↓ 22 callersFunctionpeg$parseIdentifier
()
packages/graph/src/grammar.js:17496
↓ 21 callersFunctionparseElementId
( id: ElementId<TLabel>, )
packages/graph/src/GraphStorage.ts:10
↓ 21 callersFunctionquery
(q: string)
packages/graph/src/test/duration-temporal.test.ts:62
↓ 20 callersFunctionpeg$parseAliasIdentifier
()
packages/graph/src/grammar.js:17597
↓ 20 callersMethodunion
* Union the edges in the traversal with another traversal. * @param other The other traversal to union with.
packages/graph/src/Traversals.ts:2138
↓ 19 callersFunctioncreateBinaryTree1
* Creates the binary-tree-1 fixture graph. * * Structure: * A (root) * KNOWS/FOLLOWS to b1,b2,b3,b4 * / |
packages/graph/src/test/tck/useCases/TriadicSelection1.test.ts:40
↓ 19 callersMethoddedup
* Deduplicate the edges in the traversal.
packages/graph/src/Traversals.ts:2169
↓ 19 callersMethodemit
* Emit the traversal path for each iteration
packages/graph/src/Traversals.ts:1643
↓ 18 callersFunctionexecuteQuery
(graph: Graph<GraphSchema>, queryString: string)
packages/graph/src/test/newFeaturesAggrXorVarLen.test.ts:24
next →1–100 of 1,533, ranked by callers