Skip to content

Commit f5447c0

Browse files
authored
Merge pull request #134 from tigergraph/3.7
resync master with 3.7 changes that PyTigerGraph needed
2 parents 37a2a6d + 84d1329 commit f5447c0

File tree

2 files changed

+225
-2
lines changed

2 files changed

+225
-2
lines changed

algorithms/GraphML/Embeddings/FastRP/tg_fastRP.gsql

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CREATE QUERY tg_fastRP(SET<STRING> v_type, SET<STRING> e_type,
22
STRING weights, FLOAT beta, INT k, INT reduced_dim,
33
INT sampling_constant, INT random_seed,
4-
BOOL print_accum=FALSE, STRING result_attr="") {
4+
BOOL print_accum=FALSE, STRING result_attr="") SYNTAX V1 {
55
/*
66
This query produces an embedding for each vertex.
77
Assumes that tg_fastRP_preprocessing has been run first.
@@ -128,4 +128,4 @@ CREATE QUERY tg_fastRP(SET<STRING> v_type, SET<STRING> e_type,
128128
IF result_attr != "" THEN
129129
storeEmbeddings = SELECT s FROM verts:s POST-ACCUM s.embedding = s.@final_embedding_list;
130130
END;
131-
}
131+
}

manifest.json

+223
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
{
2+
"Centrality": {
3+
"pagerank": {
4+
"weighted": {
5+
"name": "tg_pagerank_wt",
6+
"path": "algorithms/Centrality/pagerank/global/weighted/tg_pagerank_wt.gsql",
7+
"schema_type": "VERTEX",
8+
"value_type": "FLOAT"
9+
},
10+
"unweighted": {
11+
"name": "tg_pagerank",
12+
"path": "algorithms/Centrality/pagerank/global/unweighted/tg_pagerank.gsql",
13+
"schema_type": "VERTEX",
14+
"value_type": "FLOAT"
15+
}
16+
},
17+
"article_rank": {
18+
"name": "tg_article_rank",
19+
"path": "algorithms/Centrality/article_rank/tg_article_rank.gsql",
20+
"schema_type": "VERTEX",
21+
"value_type": "FLOAT"
22+
},
23+
"betweenness": {
24+
"name": "tg_betweenness_cent",
25+
"path": "algorithms/Centrality/betweenness/tg_betweenness_cent.gsql",
26+
"schema_type": "VERTEX",
27+
"value_type": "FLOAT"
28+
},
29+
"closeness": {
30+
"approximate": {
31+
"name": "tg_closeness_cent_approx",
32+
"path": "algorithms/Centrality/closeness/approximate/tg_closeness_cent_approx.gsql",
33+
"schema_type": "VERTEX",
34+
"value_type": "FLOAT"
35+
},
36+
"exact": {
37+
"name": "tg_closeness_cent",
38+
"path": "algorithms/Centrality/closeness/exact/tg_closeness_cent.gsql",
39+
"schema_type": "VERTEX",
40+
"value_type": "FLOAT"
41+
}
42+
},
43+
"degree": {
44+
"unweighted": {
45+
"name": "tg_degree_cent",
46+
"path": "algorithms/Centrality/degree/unweighted/tg_degree_cent.gsql",
47+
"schema_type": "VERTEX",
48+
"value_type": "INT"
49+
},
50+
"weighted": {
51+
"name": "tg_weighted_degree_cent",
52+
"path": "algorithms/Centrality/degree/weighted/tg_weighted_degree_cent.gsql",
53+
"schema_type": "VERTEX",
54+
"value_type": "INT"
55+
}
56+
},
57+
"eigenvector": {
58+
"name": "tg_eigenvector_cent",
59+
"path": "algorithms/Centrality/eigenvector/tg_eigenvector_cent.gsql",
60+
"schema_type": "VERTEX",
61+
"value_type": "FLOAT"
62+
},
63+
"harmonic": {
64+
"name": "tg_harmonic_cent",
65+
"path": "algorithms/Centrality/harmonic/tg_harmonic_cent.gsql",
66+
"schema_type": "VERTEX",
67+
"value_type": "FLOAT"
68+
}
69+
},
70+
"Classification": {
71+
"greedy_graph_coloring": {
72+
"name": "tg_greedy_graph_coloring",
73+
"path": "algorithms/Classification/greedy_graph_coloring/tg_greedy_graph_coloring.gsql"
74+
},
75+
"k_nearest_neighbors": {
76+
"all_pairs": {
77+
"name": "tg_knn_cosine_all",
78+
"path": "algorithms/Classification/k_nearest_neighbors/all_pairs/tg_knn_cosine_all_sub.gsql;algorithms/Classification/k_nearest_neighbors/all_pairs/tg_knn_cosine_all.gsql",
79+
"schema_type": "VERTEX",
80+
"value_type": "STRING"
81+
},
82+
"cross_validation": {
83+
"name": "tg_knn_cosine_cv",
84+
"path": "algorithms/Classification/k_nearest_neighbors/cross_validation/tg_knn_cosine_cv_sub.gsql;algorithms/Classification/k_nearest_neighbors/cross_validation/tg_knn_cosine_cv.gsql"
85+
},
86+
"single_source": {
87+
"name": "tg_knn_cosine_ss",
88+
"path": "algorithms/Classification/k_nearest_neighbors/single_source/tg_knn_cosine_ss.gsql",
89+
"schema_type": "VERTEX",
90+
"value_type": "STRING"
91+
}
92+
},
93+
"maximal_independent_set": {
94+
"deterministic": {
95+
"name": "tg_maximal_indep_set",
96+
"path": "algorithms/Classification/maximal_independent_set/deterministic/tg_maximal_indep_set.gsql"
97+
},
98+
"random": {
99+
"name": "tg_maximal_indep_set_random",
100+
"path": "algorithms/Classification/maximal_independent_set/random/tg_maximal_indep_set_random.gsql"
101+
}
102+
}
103+
},
104+
"Community": {
105+
"connected_components": {
106+
"strongly_connected_components": {
107+
"name": "tg_scc",
108+
"path": "algorithms/Community/connected_components/strongly_connected_components/standard/tg_scc.gsql",
109+
"schema_type": "VERTEX",
110+
"value_type": "INT"
111+
}
112+
},
113+
"k_core": {
114+
"name": "tg_kcore",
115+
"path": "algorithms/Community/k_core/tg_kcore.gsql",
116+
"schema_type": "VERTEX",
117+
"value_type": "INT"
118+
},
119+
"label_propagation": {
120+
"name": "tg_label_prop",
121+
"path": "algorithms/Community/label_propagation/tg_label_prop.gsql",
122+
"schema_type": "VERTEX",
123+
"value_type": "INT"
124+
},
125+
"local_clustering_coefficient": {
126+
"name": "tg_lcc",
127+
"path": "algorithms/Community/local_clustering_coefficient/tg_lcc.gsql",
128+
"schema_type": "VERTEX",
129+
"value_type": "FLOAT"
130+
},
131+
"louvain": {
132+
"name": "tg_louvain",
133+
"path": "algorithms/Community/louvain/tg_louvain.gsql",
134+
"schema_type": "VERTEX",
135+
"value_type": "INT"
136+
},
137+
"triangle_counting": {
138+
"name": "tg_tri_count_fast",
139+
"path": "algorithms/Community/triangle_counting/fast/tg_tri_count_fast.gsql",
140+
"schema_type": "VERTEX",
141+
"value_type": "INT"
142+
}
143+
},
144+
"Embeddings": {
145+
"FastRP": {
146+
"name": "tg_fastRP",
147+
"path": "algorithms/GraphML/Embeddings/FastRP/tg_fastRP.gsql",
148+
"schema_type": "VERTEX",
149+
"value_type": "LIST<DOUBLE>"
150+
}
151+
},
152+
"Path": {
153+
"bfs": {
154+
"name": "tg_bfs",
155+
"path": "algorithms/Path/bfs/tg_bfs.gsql",
156+
"schema_type": "VERTEX",
157+
"value_type": "INT"
158+
159+
},
160+
"cycle_detection": {
161+
"name": "tg_cycle_detection_count",
162+
"path": "algorithms/Path/cycle_detection/count/tg_cycle_detection_count.gsql"
163+
},
164+
"shortest_path": {
165+
"name": "tg_shortest_ss_no_wt",
166+
"path": "algorithms/Path/shortest_path/unweighted/tg_shortest_ss_no_wt.gsql",
167+
"schema_type": "VERTEX",
168+
"value_type": "INT"
169+
}
170+
},
171+
"Topological Link Prediction": {
172+
"adamic_adar": {
173+
"name": "tg_adamic_adar",
174+
"path": "algorithms/Topological%20Link%20Prediction/adamic_adar/tg_adamic_adar.gsql"
175+
},
176+
"common_neighbors": {
177+
"name": "tg_common_neighbors",
178+
"path": "algorithms/Topological%20Link%20Prediction/common_neighbors/tg_common_neighbors.gsql"
179+
},
180+
"preferential_attachment": {
181+
"name": "tg_preferential_attachment",
182+
"path": "algorithms/Topological%20Link%20Prediction/preferential_attachment/tg_preferential_attachment.gsql"
183+
},
184+
"resource_allocation": {
185+
"name": "tg_resource_allocation",
186+
"path": "algorithms/Topological%20Link%20Prediction/resource_allocation/tg_resource_allocation.gsql"
187+
},
188+
"same_community": {
189+
"name": "tg_same_community",
190+
"path": "algorithms/Topological%20Link%20Prediction/same_community/tg_same_community.gsql",
191+
"schema_type": "VERTEX",
192+
"value_type": "STRING"
193+
},
194+
"total_neighbors": {
195+
"name": "tg_total_neighbors",
196+
"path": "algorithms/Topological%20Link%20Prediction/total_neighbors/tg_total_neighbors.gsql"
197+
}
198+
},
199+
"Similarity": {
200+
"cosine": {
201+
"single_source": {
202+
"name": "tg_cosine_nbor_ss",
203+
"path": "algorithms/Similarity/cosine/single_source/tg_cosine_nbor_ss.gsql",
204+
"schema_type": "EDGE",
205+
"value_type": "STRING"
206+
}
207+
},
208+
"jaccard": {
209+
"all_pairs": {
210+
"name": "tg_jaccard_nbor_ap_batch",
211+
"path": "algorithms/Similarity/jaccard/all_pairs/tg_jaccard_nbor_ap_batch.gsql",
212+
"schema_type": "EDGE",
213+
"value_type": "STRING"
214+
},
215+
"single_source": {
216+
"name": "tg_jaccard_nbor_ss",
217+
"path": "algorithms/Similarity/jaccard/single_source/tg_jaccard_nbor_ss.gsql",
218+
"schema_type": "EDGE",
219+
"value_type": "STRING"
220+
}
221+
}
222+
}
223+
}

0 commit comments

Comments
 (0)