Blame view
templates/gstar_master (copy)/queryAvgVertexDegree.txt
691 Bytes
6a9412d84 fixing ip less th... |
1 2 3 4 5 6 7 8 9 10 11 |
cd grafos time operator vertex@* = VertexOperator([], [0:1:15]) operator out_degree@* = ProjectionOperator([vertex@local], [id, graph.id, cardinality(outgoing_edges)], [id, graph.id, out_degree]) operator count_sum@* = AggregateOperator([out_degree@local], [count, sum], [*, out_degree], [count, degree], [graph.id]) operator union@0 = UnionOperator([count_sum@*]) operator total_count@0 = AggregateOperator([union@local], [sum, sum], [degree, count], [averaged, averagec], [graph.id]) operator unsorted@0 = ProjectionOperator([total_count@local], [graph.id, averagec*averaged], [graph.id, average]) operator sort@0 = SortOperator([unsorted@local], [graph.id, average:desc]) run sort@0 time |