Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemix/graph
/ functions
Functions
1,533 in github.com/codemix/graph
⨍
Functions
1,533
◇
Types & classes
417
↓ 4,967 callers
Function
executeTckQuery
( graph: Graph<TckSchema>, queryString: string, params?: QueryParams, )
packages/graph/src/test/tck/tckHelpers.ts:967
↓ 2,583 callers
Function
createTckGraph
()
packages/graph/src/test/tck/tckHelpers.ts:952
↓ 1,177 callers
Method
addVertex
* Add a vertex to the graph.
packages/graph/src/Graph.ts:189
↓ 1,024 callers
Method
push
(item: T)
packages/graph/src/Steps.ts:4986
↓ 719 callers
Method
get
Get a component property of this temporal value
packages/graph/src/TemporalTypes.ts:13
↓ 628 callers
Function
peg$parse_
()
packages/graph/src/grammar.js:17990
↓ 496 callers
Function
peg$fail
(expected)
packages/graph/src/grammar.js:2481
↓ 452 callers
Function
astToSteps
(query: Query)
packages/graph/src/astToSteps.ts:133
↓ 450 callers
Method
addEdge
* 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 callers
Method
traverse
( _source: GraphSource<any>, input: Iterable<unknown>, _context?: QueryContext, )
packages/graph/src/Steps.ts:2643
↓ 392 callers
Method
V
* 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 callers
Method
map
* 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 callers
Function
createTraverser
(steps: readonly Step<any>[])
packages/graph/src/Steps.ts:158
↓ 333 callers
Method
values
* Get the values of the elements in the traversal.
packages/graph/src/Traversals.ts:2234
↓ 157 callers
Method
hasLabel
* 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 callers
Function
executeQuery
( graph: Graph<GraphSchema>, queryString: string, debug: boolean = false, )
packages/graph/src/test/testHelpers.ts:51
↓ 143 callers
Function
makeType
(_defaultValue: T)
packages/graph/src/test/newFeatures.test.ts:12
↓ 136 callers
Function
getLabel
(value: Record<string, unknown>)
packages/graph/src/test/tck/tckHelpers.ts:1073
↓ 131 callers
Method
getVertices
* Get all vertices, optionally filtered by labels. * @param labels The labels to filter by.
packages/graph/src/Graph.ts:152
↓ 127 callers
Method
has
(...args: any[])
packages/graph/src/Traversals.ts:1952
↓ 126 callers
Function
executeQuery
(graph: Graph<TestSchema>, query: string)
packages/graph/src/test/orderByAndForeach.test.ts:59
↓ 126 callers
Function
makeType
(_defaultValue: T)
packages/graph/src/test/newFeaturesAggrXorVarLen.test.ts:11
↓ 119 callers
Function
peg$literalExpectation
(text, ignoreCase)
packages/graph/src/grammar.js:2400
↓ 113 callers
Function
getProperty
(value: Record<string, unknown>, name: string)
packages/graph/src/test/tck/tckHelpers.ts:1123
↓ 111 callers
Function
stem
(word: string)
packages/text-search/src/stemmer.ts:300
↓ 103 callers
Method
add
* 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 callers
Method
toString
Convert to ISO string representation
packages/graph/src/TemporalTypes.ts:15
↓ 96 callers
Method
as
* 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 callers
Method
out
* 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 callers
Function
evaluateFunction
( name: string, args: readonly unknown[], path: TraversalPath<any, any, any>, distinct = false, )
packages/graph/src/FunctionRegistry.ts:1670
↓ 79 callers
Function
makeType
(_defaultValue: T)
packages/graph/src/test/testHelpers.ts:17
↓ 78 callers
Method
register
* Register a function definition.
packages/graph/src/FunctionRegistry.ts:98
↓ 73 callers
Function
compare
(a: T, b: T)
packages/graph/src/Comparator.ts:53
↓ 70 callers
Function
peg$parseIdentifierPart
()
packages/graph/src/grammar.js:17773
↓ 68 callers
Method
shortestPath
* 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 callers
Method
to
( targetOrConditionOrTraversal: | ElementId | Condition | ((parent: VertexTraversal<TSch
packages/graph/src/Traversals.ts:1710
↓ 65 callers
Method
filter
* 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 callers
Method
through
* Specify edge labels to traverse through. * @param edgeLabels The edge labels to traverse.
packages/graph/src/Traversals.ts:1751
↓ 63 callers
Method
with
* 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 callers
Method
by
* 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 callers
Method
addVertex
(...args: any[])
packages/graph/src/Graph.ts:513
↓ 58 callers
Function
peg$parseExpressionIdentifier
()
packages/graph/src/grammar.js:17640
↓ 57 callers
Method
repeat
* 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 callers
Function
createFlexibleGraph
()
packages/graph/src/test/testHelpers.ts:198
↓ 54 callers
Function
setQueryParams
(params: QueryParams)
packages/graph/src/Steps.ts:41
↓ 52 callers
Function
clearQueryParams
()
packages/graph/src/Steps.ts:58
↓ 52 callers
Method
order
* Order the edges in the traversal.
packages/graph/src/Traversals.ts:2310
↓ 50 callers
Function
createMatcher
(query: string, options: MatcherOptions = {})
packages/text-search/src/matcher.ts:267
↓ 42 callers
Function
query
(q: string)
packages/graph/src/test/return-only.test.ts:55
↓ 41 callers
Function
query
(q: string)
packages/graph/src/test/date-temporal.test.ts:56
↓ 40 callers
Method
getEdges
* Get all edges, optionally filtered by labels. * @param labels The labels to filter by.
packages/graph/src/Graph.ts:174
↓ 40 callers
Function
peg$parseArithmeticExpression
()
packages/graph/src/grammar.js:9465
↓ 38 callers
Method
select
* Select the labeled elements in the path * @param pathLabels The labels to select.
packages/graph/src/Traversals.ts:2217
↓ 38 callers
Method
times
* 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 callers
Method
outE
* 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 callers
Function
setupSetClauseGraph
()
packages/graph/src/test/orderByAndForeach.test.ts:125
↓ 36 callers
Method
updateProperty
* 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 callers
Function
executeQuery
( graph: Graph<GraphSchema>, queryString: string, debug: boolean = false, )
packages/graph/src/test/queryExecution.test.ts:24
↓ 35 callers
Method
fromString
* Create a DateValue from an ISO date string (YYYY-MM-DD).
packages/graph/src/TemporalTypes.ts:60
↓ 35 callers
Function
peg$parsePropertyIdentifier
()
packages/graph/src/grammar.js:17683
↓ 34 callers
Function
dumpSteps
(steps: readonly any[])
packages/graph/src/test/testHelpers.ts:43
↓ 33 callers
Function
createComprehensiveGraph
()
packages/graph/src/test/testHelpers.ts:284
↓ 33 callers
Function
executeQuery
(graph: Graph<GraphSchema>, queryString: string)
packages/graph/src/test/stringPredicatesAndReturnAll.test.ts:24
↓ 33 callers
Function
parseQueryToSteps
( queryString: string, options?: ParseQueryToStepsOptions, )
packages/graph/src/index.ts:145
↓ 33 callers
Method
property
* 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 callers
Method
E
* 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 callers
Function
createGraph
()
packages/graph/src/test/stringPredicatesAndReturnAll.test.ts:63
↓ 32 callers
Function
createMockPath
(properties: Record<string, any>)
packages/graph/src/test/orderByAndForeach.test.ts:67
↓ 32 callers
Method
startsWith
* 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 callers
Method
getOutgoingEdges
* Get all outgoing edges of a vertex. * @param vertexId The id of the vertex.
packages/graph/src/Graph.ts:132
↓ 31 callers
Method
lookup
* 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 callers
Function
createGraph
()
packages/graph/src/test/stringPredicateTraversals.test.ts:54
↓ 29 callers
Function
createBinaryTree
(graph: Graph<TckSchema>)
packages/graph/src/test/tck/clauses/Match5.test.ts:15
↓ 29 callers
Function
makeType
(_defaultValue: T)
packages/graph/src/test/generateSchemaGuide.test.ts:11
↓ 28 callers
Function
tokenize
(text: string, options: TokenizeOptions = {})
packages/text-search/src/tokenizer.ts:89
↓ 27 callers
Method
endsWith
* 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 callers
Method
invoke
* Invoke a function with the given context.
packages/graph/src/FunctionRegistry.ts:120
↓ 27 callers
Method
properties
(...propertyNames: TPropertyNames)
packages/graph/src/Traversals.ts:2269
↓ 26 callers
Function
anyAstToSteps
(ast: Query | UnionQuery | MultiStatement)
packages/graph/src/astToSteps.ts:490
↓ 26 callers
Method
unfold
* Unfold each value in the traversal.
packages/graph/src/Traversals.ts:1321
↓ 25 callers
Function
compareObjects
(a: object, b: object)
packages/graph/src/Comparator.ts:118
↓ 25 callers
Method
getVertexById
* 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 callers
Method
hasProperty
(key: string, value: any = undefined)
packages/graph/src/Graph.ts:885
↓ 25 callers
Function
setupQueryExecutionGraph
()
packages/graph/src/test/queryExecution.test.ts:38
↓ 24 callers
Function
createDemoGraph
( graph = new Graph<DemoSchema>({ schema: demoSchema, storage: new InMemoryGraphStorage(), valid
packages/graph/src/getDemoGraph.ts:45
↓ 24 callers
Method
getEdgeById
* 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 callers
Method
outV
* 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 callers
Function
rankDocuments
( query: string, documentsOrConfig: T[] | RankConfig<T, K>, documentsOrOptions?: T[] | MatcherOptions,
packages/text-search/src/matcher.ts:437
↓ 22 callers
Function
createTestGraph
()
packages/graph/src/test/negativeAndRegex.test.ts:7
↓ 22 callers
Function
makeType
(_defaultValue: T)
packages/graph/src/test/createManufacturingGraph.ts:6
↓ 22 callers
Function
peg$parseAS
()
packages/graph/src/grammar.js:15767
↓ 22 callers
Function
peg$parseIdentifier
()
packages/graph/src/grammar.js:17496
↓ 21 callers
Function
parseElementId
( id: ElementId<TLabel>, )
packages/graph/src/GraphStorage.ts:10
↓ 21 callers
Function
query
(q: string)
packages/graph/src/test/duration-temporal.test.ts:62
↓ 20 callers
Function
peg$parseAliasIdentifier
()
packages/graph/src/grammar.js:17597
↓ 20 callers
Method
union
* Union the edges in the traversal with another traversal. * @param other The other traversal to union with.
packages/graph/src/Traversals.ts:2138
↓ 19 callers
Function
createBinaryTree1
* 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 callers
Method
dedup
* Deduplicate the edges in the traversal.
packages/graph/src/Traversals.ts:2169
↓ 19 callers
Method
emit
* Emit the traversal path for each iteration
packages/graph/src/Traversals.ts:1643
↓ 18 callers
Function
executeQuery
(graph: Graph<GraphSchema>, queryString: string)
packages/graph/src/test/newFeaturesAggrXorVarLen.test.ts:24
next →
1–100 of 1,533, ranked by callers