Skip to content

Commit ce3e16b

Browse files
[GAE/tests] Add GAE tests for FLASH algorithms of bfs and cc (#2869)
Committed-by: longbinlai from Dev container Fix issue #2824 --------- Co-authored-by: lixueclaire <[email protected]>
1 parent 5a63faf commit ce3e16b

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

docs/interactive_engine/deployment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ deployment and management of applications. To deploy GIE standalone using Helm,
7777
You should see the GIE Frontend service endpoint as `<ip>:<gremlinPort>`.
7878

7979
- Connect to the GIE frontend service using the Tinkerpop's official SDKs or Gremlin console, which
80-
can be found [here](./tinkerpop_eco.md).
80+
can be found [here](./tinkerpop_gremlin.md).
8181

8282
## Remove the GIE Service
8383
```bash

docs/interactive_engine/dev_and_test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ java -cp ".:$GIE_TEST_HOME/lib/*" -Djna.library.path=$GIE_TEST_HOME/lib com.alib
131131
```
132132

133133
With the frontend service, you can open the gremlin console and set the endpoint to
134-
`localhost:8182`, as given [here](./deployment.md#deploy-your-first-gie-service).
134+
`localhost:8182`, as given [here](./tinkerpop_gremlin.md#gremlin-console).
135135

136136
7. Kill the services of `vineyardd`, `gaia_executor` and `frontend`:
137137
```

python/graphscope/tests/unittest/test_flash.py

+24
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,27 @@ def test_flash_triangle_counting_on_projected_graph(arrow_property_graph_directe
4848
vertices={v: []}, edges={e: ["weight"]}
4949
)
5050
ctx = flash.triangle_counting(g)
51+
52+
53+
def test_flash_bfs_on_projected_graph(ldbc_graph):
54+
g = ldbc_graph.project(
55+
vertices={"person": []},
56+
edges={"knows": []},
57+
)
58+
bfs_context = flash.bfs(g, source=65)
59+
df = bfs_context.to_dataframe(selector={"id": "v.id", "dist": "r"}).sort_values(
60+
by=["id"]
61+
)
62+
print(df)
63+
64+
65+
def test_flash_cc_on_projected_graph(ldbc_graph):
66+
g = ldbc_graph.project(
67+
vertices={"person": []},
68+
edges={"knows": []},
69+
)
70+
cc_context = flash.cc(g)
71+
df = cc_context.to_dataframe(selector={"id": "v.id", "cc": "r"}).sort_values(
72+
by=["id"]
73+
)
74+
print(df)

0 commit comments

Comments
 (0)