Advertisement

Gemini项目(4)process_edges

阅读量:

process_edges函数功能解析

共有六个参数,包括sparse_signal、sparse_slot、dense_signal、dense_slot,以及活跃点集合和dense_selective。

PageGraph.cpp实现分析

将next数组初始化为空。next与curr分别用于存储上一周期和当前周期的顶点值

复制代码
      for (int i_i=0;i_i<iterations;i_i++) {
    if (graph->partition_id==0) {
      printf("delta(%d)=%lf\n", i_i, delta);
    }
    VertexId activated = 0;
    graph->fill_vertex_array(next, (double)0);
    
      
      
      
      
      
      
    

graph.hpp文件结构解析

process_edges原始函数的代码结构如下:

复制代码
    // process edges
      template<typename R, typename M>
      R process_edges(std::function<v

全部评论 (0)

还没有任何评论哟~