*** GSQL Graph Algorithm Installer ***
- Graph social(Person:v, Friend:e, Also_Friend:e, Coworker:e)
Please enter the number of the algorithm to install:
5) Community detection: Louvain
7) Shortest Path, Single-Source, Any Weight
8) Triangle Counting(minimal memory)
9) Triangle Counting(fast, more memory)
pageRank() works on directed edges
Available vertex and edge types:
- VERTEX Person(PRIMARY_ID id STRING, name STRING, score FLOAT, tag STRING) WITH STATS="OUTDEGREE_BY_EDGETYPE"
- DIRECTED EDGE Friend(FROM Person, TO Person, weight FLOAT, tag STRING) WITH REVERSE_EDGE="Also_Friend"
- DIRECTED EDGE Also_Friend(FROM Person, TO Person, weight FLOAT, tag STRING) WITH REVERSE_EDGE="Friend"
- UNDIRECTED EDGE Coworker(FROM Person, TO Person, weight FLOAT, tag STRING)
Please enter the vertex type(s) and edge type(s) for running PageRank.
Use commas to separate multiple types [ex: type1, type2]
Leaving this blank will select all available types
Similarity algorithms only take single vertex type
The query pageRank is dropped.
The query pageRank_file is dropped.
The query pageRank_attr is dropped.
Please choose query mode:
Please choose a way to show result:
1) Show JSON result 3) Save to Attribute/Insert Edge
2) Write to File 4) All of the above
gsql -g social ./templates/pageRank.gsql
The query pageRank has been added!
gsql -g social ./templates/pageRank_file.gsql
The query pageRank_file has been added!
If your graph schema has appropriate vertex or edge attributes,
you can update the graph with your results.
Do you want to update the graph [yn]? y
Vertex attribute to store FLOAT result (e.g. pageRank): score
gsql -g social ./templates/pageRank_attr.gsql
The query pageRank_attr has been added!
Created the following algorithms:
- pageRank(float maxChange, int maxIter, float damping, bool display, int outputLimit)
- pageRank_attr(float maxChange, int maxIter, float damping, bool display)
- pageRank_file(float maxChange, int maxIter, float damping, bool display, file f)
Please enter the number of the algorithm to install:
5) Community detection: Louvain
7) Shortest Path, Single-Source, Any Weight
8) Triangle Counting(minimal memory)
9) Triangle Counting(fast, more memory)
Algorithm files have been created. Do want to install them now [yn]? y
Start installing queries, about 1 minute ...
pageRank query: curl -X GET 'http://127.0.0.1:9000/query/social/pageRank?maxChange=VALUE&maxIter=VALUE&damping=VALUE&display=VALUE&outputLimit=VALUE'. Add -H "Authorization: Bearer TOKEN" if authentication is enabled.
pageRank_file query: curl -X GET 'http://127.0.0.1:9000/query/social/pageRank_file?maxChange=VALUE&maxIter=VALUE&damping=VALUE&display=VALUE&f=VALUE'. Add -H "Authorization: Bearer TOKEN" if authentication is enabled.
pageRank_attr query: curl -X GET 'http://127.0.0.1:9000/query/social/pageRank_attr?maxChange=VALUE&maxIter=VALUE&damping=VALUE&display=VALUE'. Add -H "Authorization: Bearer TOKEN" if authentication is enabled.
[======================================================================================================] 100% (3/3)