 #include <gunrock/app/enactor_base.cuh>
 #include <gunrock/problem_base.cuh>
 
+#include <cub/cub.cuh>
+
 namespace gunrock {
 namespace global_indicator {
 namespace modularity {



                //do a global reduction to get the final modularity_score
            }

} // namespace modularity


    static __device__ __forceinline__ bool CondEdge(VertexId s_id, VertexId d_id, DataSlice *problem, VertexId e_id = 0, VertexId e_id_in = 0)
    {
        //should assign modularity_scores to 0 if not pass.
        return (&problem->d_community_ids[d_id] == &problem->d_community_ids[s_id]);
    }

