Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
1a821ed
Adding algorithms to GraphQL defined statically. Added GraphQL wrappe…
arienandalibi Jul 13, 2026
5b0d058
Added output for NodeStates in GraphQL. We query/return columns which…
arienandalibi Jul 15, 2026
84d94f8
Update pagerank test to match new output query.
arienandalibi Jul 15, 2026
5710bc4
Rustfmt
arienandalibi Jul 15, 2026
d3597dd
Add python test for graphql pagerank algorithm with the new nodestate…
arienandalibi Jul 15, 2026
a613dea
Merge branch 'db_v4' into db_v4_graphql_algorithms
arienandalibi Jul 15, 2026
5a63273
cargo.lock and rustfmt changes
arienandalibi Jul 15, 2026
763914c
update python test
arienandalibi Jul 15, 2026
adc53c2
Added get and sortById on GqlNodeState, along with a test for them
arienandalibi Jul 16, 2026
8f341d0
First iteration of min/max/median for GraphQL. Still have some change…
arienandalibi Jul 16, 2026
65d6a1e
Update min, max, median functions to use the underlying rust implemen…
arienandalibi Jul 17, 2026
7b2517d
Added GraphQL queries to return the NodeState's values by row (keyed …
arienandalibi Jul 20, 2026
e60f633
Rename field
arienandalibi Jul 20, 2026
0e6c136
Adding single source shortest path to GraphQL algorithms.
arienandalibi Jul 21, 2026
1f4e7fa
Adding out components to GraphQL algorithms.
arienandalibi Jul 21, 2026
8068934
Adding in components and dijkstra to GraphQL algorithms.
arienandalibi Jul 21, 2026
bda581e
Merge branch 'db_v4' into db_v4_graphql_algorithms
arienandalibi Jul 22, 2026
19aa86c
Added degree_centrality, betweenness_centrality, and hits algorithms …
arienandalibi Jul 22, 2026
dced393
Added label_propagation and louvain algorithms in GraphQL
arienandalibi Jul 22, 2026
801b5ce
Added strongly_connected_components and weakly_connected_components a…
arienandalibi Jul 22, 2026
e01dc3c
Added all_local_reciprocity, balance, and local_clustering_coefficien…
arienandalibi Jul 22, 2026
43a18af
Added cohesive_fruchterman_reingold, fast_rp, fruchterman_reingold_un…
arienandalibi Jul 23, 2026
be192b8
Adding in_component and out_component to GraphQL. They take a node as…
arienandalibi Jul 23, 2026
8e08fae
Added GqlViewFilter to GraphQL, which combines the three other filter…
arienandalibi Jul 24, 2026
0cbd4d1
Updating f32 algorithms to use f64
arienandalibi Jul 27, 2026
3d20e6b
Added average_degree, directed_graph_density, global_clustering_coeff…
arienandalibi Jul 27, 2026
72ab648
Added max_degree, max_in_degree, max_out_degree, min_degree, min_in_d…
arienandalibi Jul 27, 2026
a906520
Added local_clustering_coefficient and local_triangle_count algorithm…
arienandalibi Jul 28, 2026
014df50
Added global_temporal_three_node_motif, temporal_three_node_motif_mul…
arienandalibi Jul 29, 2026
bdb802c
Added alternating_mask and temporal_SEIR algorithms in GraphQL
arienandalibi Jul 30, 2026
dd6a414
Fixing temporal_SEIR probability infection and adding temporal_rich_c…
arienandalibi Jul 30, 2026
11915a2
Update schema.graphql
arienandalibi Jul 30, 2026
f77fa8e
Added top_k, bottom_k, sort_by_values, and group_by to GqlNodeState
arienandalibi Jul 31, 2026
2f1498b
Merge branch 'db_v4' into db_v4_graphql_algorithms
arienandalibi Jul 31, 2026
8e21120
Update TODO and FIXME
arienandalibi Jul 31, 2026
8e752c2
Merge branch 'db_v4' into db_v4_graphql_algorithms
arienandalibi Aug 3, 2026
29eac50
Added paging for GqlNodeState
arienandalibi Aug 4, 2026
403f01d
Merge branch 'db_v4' into db_v4_graphql_algorithms
arienandalibi Aug 4, 2026
30d0479
Moving algorithm, node state, and filtering tests out of lib.rs and i…
arienandalibi Aug 4, 2026
de13847
Move tests from lib.rs to the individual algorithm's rust file
arienandalibi Aug 5, 2026
02b1143
Change directory structure of algorithms in GraphQL to match that of …
arienandalibi Aug 5, 2026
aeb15a2
Fixing new directory structures. Mainly adding mod.rs files to subdir…
arienandalibi Aug 5, 2026
bbd791c
Splitting GraphQL's src/model/algorithms.mod.rs into 3 files, keeping…
arienandalibi Aug 5, 2026
6aa20a0
Rename test_algorithms.py to test_algorithms_graphql.py
miratepuffin Aug 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
from raphtory import Graph

from utils import run_graphql_test


def init_graph(graph: Graph):
graph.add_edge(1, "a", "b")
graph.add_edge(2, "a", "c")
graph.add_edge(3, "b", "c")
return graph


def test_algorithm_pagerank():
graph = init_graph(Graph())
query = """{
graph(path: "g") {
algorithm {
pagerank(iterCount: 20) {
count
nodes { list { name } }
columns {
name
values {
__typename
... on NodeStateProp { prop }
}
}
}
}
}
}"""
expected_output = {
"graph": {
"algorithm": {
"pagerank": {
"count": 3,
"nodes": {"list": [{"name": "a"}, {"name": "b"}, {"name": "c"}]},
"columns": [
{
"name": "pagerank_score",
"values": [
{ "__typename": "NodeStateProp", "prop": 0.197580035313204 },
{ "__typename": "NodeStateProp", "prop": 0.28155081033755053 },
{ "__typename": "NodeStateProp", "prop": 0.5208691543492454 },
],
}
],
}
}
}
}
run_graphql_test(query, expected_output, graph)
1 change: 1 addition & 0 deletions raphtory-graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jsonwebtoken = { workspace = true }
spki = { workspace = true }
thiserror = { workspace = true }
itertools = { workspace = true }
rand = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
once_cell = { workspace = true }
Expand Down
Loading
Loading