Replies: 1 comment
-
你好,Louvain 算法只支持同构图的。也就是一个顶点一条边的情况 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Louvain是指支持单个vertex的图还是支持多个vertex的图(异构图)?
我尝试构建了一个图,图的schema如下:
oid_type: LONG vid_type: ULONG type: VERTEX Label: person Properties: Property(0, idaas_open_id, STRING), Property(1, person_id, LONG) type: VERTEX Label: action Properties: Property(0, request_action, STRING), Property(1, action_id, LONG) type: EDGE Label: request Properties: Property(0, idaas_open_id, STRING), Property(1, request_action, STRING) Relations: [Relation(source='person', destination='action')]
运行louvain算法时
c = graphscope.louvain(graph, min_progress=1000, progress_tries=1)
报错,报错信息为:
In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/arrow/buffer.h:31, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/arrow/array/data.h:26, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/arrow/array/array_base.h:26, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/arrow/array.h:25, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/arrow/api.h:22, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/vineyard/client/client.h:28, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/context/i_context.h:29, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/ctx_wrapper_builder.h:26, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:23: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/arrow/util/string_view.h:20: warning: "nssv_CONFIG_SELECT_STRING_VIEW" redefined 20 | #define nssv_CONFIG_SELECT_STRING_VIEW nssv_STRING_VIEW_NONSTD | In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/types.h:23, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/app/context_base.h:22, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:19: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/string_view/string_view.hpp:44: note: this is the location of the previous definition 44 | # define nssv_CONFIG_SELECT_STRING_VIEW ( nssv_HAVE_STD_STRING_VIEW ? nssv_STRING_VIEW_STD : nssv_STRING_VIEW_NONSTD ) | In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/pregel/pregel_compute_context.h:32, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:28, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:44: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/pregel/pregel_vertex.h: In instantiation of ‘class gs::PregelVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h:40:7: required from ‘class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/pregel/i_vertex_program.h:47:9: required from ‘class gs::IPregelProgram<gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >, gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> > >’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:56:7: required from ‘class gs::PregelLouvain<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:43:7: required from ‘class gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:50:37: required from here /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/pregel/pregel_vertex.h:43:9: error: no type named ‘const_adj_list_t’ in ‘using fragment_t = class gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>’ {aka ‘class gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>’} 43 | using adj_list_t = typename fragment_t::const_adj_list_t; | ^~~~~~~~~~ In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:25, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:31, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:44: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h: In instantiation of ‘class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/pregel/i_vertex_program.h:47:9: required from ‘class gs::IPregelProgram<gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >, gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> > >’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:56:7: required from ‘class gs::PregelLouvain<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:43:7: required from ‘class gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:50:37: required from here /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h:46:9: error: no type named ‘const_adj_list_t’ in ‘using fragment_t = class gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>’ {aka ‘class gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>’} 46 | using adj_list_t = typename fragment_t::const_adj_list_t; | ^~~~~~~~~~ In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:31, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:44: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h: In instantiation of ‘void gs::PregelLouvain<FRAG_T>::Init(gs::PregelLouvain<FRAG_T>::pregel_vertex_t&, gs::PregelLouvain<FRAG_T>::compute_context_t&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; gs::PregelLouvain<FRAG_T>::pregel_vertex_t = gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >; typename FRAG_T::vid_t = long unsigned int; typename FRAG_T::oid_t = long int; gs::PregelLouvain<FRAG_T>::compute_context_t = gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >]’: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:98:7: required from ‘void gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::PEval(const fragment_t&, gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::context_t&, gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::message_manager_t&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; VERTEX_PROGRAM_T = gs::PregelLouvain<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::fragment_t = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::context_t = gs::LouvainContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> > >; typename VERTEX_PROGRAM_T::md_t = gs::LouvainMessage<long unsigned int>; typename VERTEX_PROGRAM_T::vd_t = long int; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::message_manager_t = grape::ParallelMessageManager]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/worker/worker.h:152:5: required from ‘typename std::enable_if<(! std::is_same<T, grape::AutoParallelMessageManager<typename APP_T::fragment_t> >::value)>::type grape::Worker<APP_T, MESSAGE_MANAGER_T>::runPEval() [with T = grape::ParallelMessageManager; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; MESSAGE_MANAGER_T = grape::ParallelMessageManager; typename std::enable_if<(! std::is_same<T, grape::AutoParallelMessageManager<typename APP_T::fragment_t> >::value)>::type = void]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/worker/worker.h:99:5: required from ‘void grape::Worker<APP_T, MESSAGE_MANAGER_T>::Query(Args&& ...) [with Args = {int, int}; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; MESSAGE_MANAGER_T = grape::ParallelMessageManager]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/app_invoker.h:187:5: required from ‘static void gs::AppInvoker<APP_T>::query_impl(std::shared_ptr<typename APP_T::worker_t>, const gs::rpc::QueryArgs&, std::index_sequence<I ...>) [with long unsigned int ...I = {0, 1}; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; typename APP_T::worker_t = grape::Worker<gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >, grape::ParallelMessageManager>; std::index_sequence<I ...> = std::integer_sequence<long unsigned int, 0, 1>]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/app_invoker.h:198:15: required from ‘static boost::leaf::result<std::nullptr_t> gs::AppInvoker<APP_T>::Query(std::shared_ptr<typename APP_T::worker_t>, const gs::rpc::QueryArgs&) [with APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; typename APP_T::worker_t = grape::Worker<gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >, grape::ParallelMessageManager>]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:79:44: required from here /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:77:22: error: ‘using pregel_vertex_t = class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’ {aka ‘class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’} has no member named ‘outgoing_edges’ 77 | for (auto& e : v.outgoing_edges()) { | ~~^~~~~~~~~~~~~~ In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:25, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:31, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:44: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h: In instantiation of ‘size_t gs::LouvainVertex<FRAG_T, VD_T, MD_T>::edge_size() [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; VD_T = long int; MD_T = gs::LouvainMessage<long unsigned int>; size_t = long unsigned int]’: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:122:69: required from ‘void gs::PregelLouvain<FRAG_T>::Compute(grape::IteratorPair<gs::LouvainMessage<typename FRAG_T::vid_t>*>, gs::PregelLouvain<FRAG_T>::pregel_vertex_t&, gs::PregelLouvain<FRAG_T>::compute_context_t&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; typename FRAG_T::vid_t = long unsigned int; gs::PregelLouvain<FRAG_T>::pregel_vertex_t = gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >; typename FRAG_T::oid_t = long int; gs::PregelLouvain<FRAG_T>::compute_context_t = gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:110:15: required from ‘void gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::PEval(const fragment_t&, gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::context_t&, gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::message_manager_t&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; VERTEX_PROGRAM_T = gs::PregelLouvain<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::fragment_t = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::context_t = gs::LouvainContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> > >; typename VERTEX_PROGRAM_T::md_t = gs::LouvainMessage<long unsigned int>; typename VERTEX_PROGRAM_T::vd_t = long int; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::message_manager_t = grape::ParallelMessageManager]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/worker/worker.h:152:5: required from ‘typename std::enable_if<(! std::is_same<T, grape::AutoParallelMessageManager<typename APP_T::fragment_t> >::value)>::type grape::Worker<APP_T, MESSAGE_MANAGER_T>::runPEval() [with T = grape::ParallelMessageManager; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; MESSAGE_MANAGER_T = grape::ParallelMessageManager; typename std::enable_if<(! std::is_same<T, grape::AutoParallelMessageManager<typename APP_T::fragment_t> >::value)>::type = void]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/worker/worker.h:99:5: required from ‘void grape::Worker<APP_T, MESSAGE_MANAGER_T>::Query(Args&& ...) [with Args = {int, int}; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; MESSAGE_MANAGER_T = grape::ParallelMessageManager]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/app_invoker.h:187:5: required from ‘static void gs::AppInvoker<APP_T>::query_impl(std::shared_ptr<typename APP_T::worker_t>, const gs::rpc::QueryArgs&, std::index_sequence<I ...>) [with long unsigned int ...I = {0, 1}; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; typename APP_T::worker_t = grape::Worker<gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >, grape::ParallelMessageManager>; std::index_sequence<I ...> = std::integer_sequence<long unsigned int, 0, 1>]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/app_invoker.h:198:15: required from ‘static boost::leaf::result<std::nullptr_t> gs::AppInvoker<APP_T>::Query(std::shared_ptr<typename APP_T::worker_t>, const gs::rpc::QueryArgs&) [with APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; typename APP_T::worker_t = grape::Worker<gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >, grape::ParallelMessageManager>]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:79:44: required from here /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h:71:20: error: ‘class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’ has no member named ‘incoming_edges’ 71 | return this->incoming_edges().Size() + this->outgoing_edges().Size(); | ~~~~~~^~~~~~~~~~~~~~ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h:71:52: error: ‘class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’ has no member named ‘outgoing_edges’ 71 | return this->incoming_edges().Size() + this->outgoing_edges().Size(); | ~~~~~~^~~~~~~~~~~~~~ In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:31, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:44: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h: In instantiation of ‘void gs::PregelLouvain<FRAG_T>::getAndSendCommunityInfo(gs::PregelLouvain<FRAG_T>::pregel_vertex_t&, gs::PregelLouvain<FRAG_T>::compute_context_t&, const grape::IteratorPair<gs::LouvainMessage<typename FRAG_T::vid_t>*>&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; gs::PregelLouvain<FRAG_T>::pregel_vertex_t = gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >; typename FRAG_T::vid_t = long unsigned int; typename FRAG_T::oid_t = long int; gs::PregelLouvain<FRAG_T>::compute_context_t = gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >]’: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:153:7: required from ‘void gs::PregelLouvain<FRAG_T>::Compute(grape::IteratorPair<gs::LouvainMessage<typename FRAG_T::vid_t>*>, gs::PregelLouvain<FRAG_T>::pregel_vertex_t&, gs::PregelLouvain<FRAG_T>::compute_context_t&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; typename FRAG_T::vid_t = long unsigned int; gs::PregelLouvain<FRAG_T>::pregel_vertex_t = gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >; typename FRAG_T::oid_t = long int; gs::PregelLouvain<FRAG_T>::compute_context_t = gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:110:15: required from ‘void gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::PEval(const fragment_t&, gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::context_t&, gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::message_manager_t&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; VERTEX_PROGRAM_T = gs::PregelLouvain<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::fragment_t = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::context_t = gs::LouvainContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> > >; typename VERTEX_PROGRAM_T::md_t = gs::LouvainMessage<long unsigned int>; typename VERTEX_PROGRAM_T::vd_t = long int; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::message_manager_t = grape::ParallelMessageManager]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/worker/worker.h:152:5: required from ‘typename std::enable_if<(! std::is_same<T, grape::AutoParallelMessageManager<typename APP_T::fragment_t> >::value)>::type grape::Worker<APP_T, MESSAGE_MANAGER_T>::runPEval() [with T = grape::ParallelMessageManager; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; MESSAGE_MANAGER_T = grape::ParallelMessageManager; typename std::enable_if<(! std::is_same<T, grape::AutoParallelMessageManager<typename APP_T::fragment_t> >::value)>::type = void]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/worker/worker.h:99:5: required from ‘void grape::Worker<APP_T, MESSAGE_MANAGER_T>::Query(Args&& ...) [with Args = {int, int}; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; MESSAGE_MANAGER_T = grape::ParallelMessageManager]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/app_invoker.h:187:5: required from ‘static void gs::AppInvoker<APP_T>::query_impl(std::shared_ptr<typename APP_T::worker_t>, const gs::rpc::QueryArgs&, std::index_sequence<I ...>) [with long unsigned int ...I = {0, 1}; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; typename APP_T::worker_t = grape::Worker<gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >, grape::ParallelMessageManager>; std::index_sequence<I ...> = std::integer_sequence<long unsigned int, 0, 1>]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/app_invoker.h:198:15: required from ‘static boost::leaf::result<std::nullptr_t> gs::AppInvoker<APP_T>::Query(std::shared_ptr<typename APP_T::worker_t>, const gs::rpc::QueryArgs&) [with APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; typename APP_T::worker_t = grape::Worker<gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >, grape::ParallelMessageManager>]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:79:44: required from here /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:212:32: error: ‘using pregel_vertex_t = class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’ {aka ‘class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’} has no member named ‘outgoing_edges’ 212 | for (auto& edge : vertex.outgoing_edges()) { | ~~~~~~~^~~~~~~~~~~~~~ In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:25, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:31, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:44: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h: In instantiation of ‘gs::LouvainVertex<FRAG_T, VD_T, MD_T>::edata_t gs::LouvainVertex<FRAG_T, VD_T, MD_T>::get_edge_values(const std::set<typename FRAG_T::vid_t>&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; VD_T = long int; MD_T = gs::LouvainMessage<long unsigned int>; gs::LouvainVertex<FRAG_T, VD_T, MD_T>::edata_t = double; typename FRAG_T::vid_t = long unsigned int; typename FRAG_T::vid_t = long unsigned int]’: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:346:12: required from ‘double gs::PregelLouvain<FRAG_T>::calculateActualQuality(gs::PregelLouvain<FRAG_T>::pregel_vertex_t&, gs::PregelLouvain<FRAG_T>::compute_context_t&, const grape::IteratorPair<gs::LouvainMessage<typename FRAG_T::vid_t>*>&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; gs::PregelLouvain<FRAG_T>::pregel_vertex_t = gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >; typename FRAG_T::vid_t = long unsigned int; typename FRAG_T::oid_t = long int; gs::PregelLouvain<FRAG_T>::compute_context_t = gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain.h:132:18: required from ‘void gs::PregelLouvain<FRAG_T>::Compute(grape::IteratorPair<gs::LouvainMessage<typename FRAG_T::vid_t>*>, gs::PregelLouvain<FRAG_T>::pregel_vertex_t&, gs::PregelLouvain<FRAG_T>::compute_context_t&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; typename FRAG_T::vid_t = long unsigned int; gs::PregelLouvain<FRAG_T>::pregel_vertex_t = gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >; typename FRAG_T::oid_t = long int; gs::PregelLouvain<FRAG_T>::compute_context_t = gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_app_base.h:110:15: required from ‘void gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::PEval(const fragment_t&, gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::context_t&, gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::message_manager_t&) [with FRAG_T = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; VERTEX_PROGRAM_T = gs::PregelLouvain<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::fragment_t = gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::context_t = gs::LouvainContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, gs::PregelComputeContext<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> > >; typename VERTEX_PROGRAM_T::md_t = gs::LouvainMessage<long unsigned int>; typename VERTEX_PROGRAM_T::vd_t = long int; gs::LouvainAppBase<FRAG_T, VERTEX_PROGRAM_T>::message_manager_t = grape::ParallelMessageManager]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/worker/worker.h:152:5: required from ‘typename std::enable_if<(! std::is_same<T, grape::AutoParallelMessageManager<typename APP_T::fragment_t> >::value)>::type grape::Worker<APP_T, MESSAGE_MANAGER_T>::runPEval() [with T = grape::ParallelMessageManager; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; MESSAGE_MANAGER_T = grape::ParallelMessageManager; typename std::enable_if<(! std::is_same<T, grape::AutoParallelMessageManager<typename APP_T::fragment_t> >::value)>::type = void]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/grape/worker/worker.h:99:5: required from ‘void grape::Worker<APP_T, MESSAGE_MANAGER_T>::Query(Args&& ...) [with Args = {int, int}; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; MESSAGE_MANAGER_T = grape::ParallelMessageManager]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/app_invoker.h:187:5: required from ‘static void gs::AppInvoker<APP_T>::query_impl(std::shared_ptr<typename APP_T::worker_t>, const gs::rpc::QueryArgs&, std::index_sequence<I ...>) [with long unsigned int ...I = {0, 1}; APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; typename APP_T::worker_t = grape::Worker<gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >, grape::ParallelMessageManager>; std::index_sequence<I ...> = std::integer_sequence<long unsigned int, 0, 1>]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/app/app_invoker.h:198:15: required from ‘static boost::leaf::result<std::nullptr_t> gs::AppInvoker<APP_T>::Query(std::shared_ptr<typename APP_T::worker_t>, const gs::rpc::QueryArgs&) [with APP_T = gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >; typename APP_T::worker_t = grape::Worker<gs::LouvainAppBase<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType> >, grape::ParallelMessageManager>]’ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:79:44: required from here /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h:106:31: error: ‘class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’ has no member named ‘incoming_edges’ 106 | for (auto& edge : this->incoming_edges()) { | ~~~~~~^~~~~~~~~~~~~~ /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/apps/pregel/louvain/louvain_vertex.h:112:31: error: ‘class gs::LouvainVertex<gs::ArrowFlattenedFragment<long int, long unsigned int, grape::EmptyType, grape::EmptyType>, long int, gs::LouvainMessage<long unsigned int> >’ has no member named ‘outgoing_edges’ 112 | for (auto& edge : this->outgoing_edges()) { | ~~~~~~^~~~~~~~~~~~~~ In file included from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/serialization/strong_typedef.hpp:27, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/serialization/serialization.hpp:14, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/serialization/split_free.hpp:22, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/serialization/nvp.hpp:35, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/multi_index/detail/index_loader.hpp:22, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/multi_index/detail/index_base.hpp:33, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/multi_index/detail/base_type.hpp:21, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/multi_index_container.hpp:36, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/property_tree/ptree.hpp:21, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/property_tree/json_parser.hpp:14, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/context/selector.h:28, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/core/context/i_context.h:33, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/ctx_wrapper_builder.h:26, from /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc:23: /opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/boost/operators.hpp:162:18: warning: inline function ‘bool boost::operators_impl::operator!=(const boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::ordered_index_node<boost::multi_index::detail::null_augment_policy, boost::multi_index::detail::index_node_base<std::pair<const std::basic_string<char>, boost::property_tree::basic_ptree<std::basic_string<char>, std::basic_string<char> > >, std::allocator<std::pair<const std::basic_string<char>, boost::property_tree::basic_ptree<std::basic_string<char>, std::basic_string<char> > > > > > >&, const boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::ordered_index_node<boost::multi_index::detail::null_augment_policy, boost::multi_index::detail::index_node_base<std::pair<const std::basic_string<char>, boost::property_tree::basic_ptree<std::basic_string<char>, std::basic_string<char> > >, std::allocator<std::pair<const std::basic_string<char>, boost::property_tree::basic_ptree<std::basic_string<char>, std::basic_string<char> > > > > > >&)’ used but never defined 162 | friend bool operator!=(const T& x, const T& y) { return !static_cast<bool>(x == y); } | ^~~~~~~~ cc1plus: warning: unrecognized command line option ‘-Wno-unused-lambda-capture’ cc1plus: warning: unrecognized command line option ‘-Wno-undef-prefix’ make[2]: *** [CMakeFiles/d3a1dbbd5025e12aba5bdb4745de4d801297fb37a429302ff961f68caed84820.dir/build.make:76: CMakeFiles/d3a1dbbd5025e12aba5bdb4745de4d801297fb37a429302ff961f68caed84820.dir/opt/conda/lib/python3.8/site-packages/graphscope.runtime/include/graphscope/frame/app_frame.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/d3a1dbbd5025e12aba5bdb4745de4d801297fb37a429302ff961f68caed84820.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 2023-09-13 13:04:39,857 [ERROR][rpc:187]: Runstep failed with code: ANALYTICAL_ENGINE_INTERNAL_ERROR, message: Error occurred during preprocessing, The traceback is: Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/gscoordinator/coordinator.py", line 624, in _RunStep head, bodies = self.run_on_analytical_engine( File "/opt/conda/lib/python3.8/site-packages/gscoordinator/coordinator.py", line 403, in run_on_analytical_engine op, app_sig, app_lib_path = self._maybe_compile_app(op) File "/opt/conda/lib/python3.8/site-packages/gscoordinator/coordinator.py", line 684, in _maybe_compile_app compiled_path = self._compile_lib_and_distribute( File "/opt/conda/lib/python3.8/site-packages/gscoordinator/coordinator.py", line 1256, in _compile_lib_and_distribute app_lib_path, java_jar_path, java_ffi_path, app_type = compile_func( File "/opt/conda/lib/python3.8/site-packages/gscoordinator/utils.py", line 383, in compile_app raise CompilationError( graphscope.framework.errors.CompilationError: Failed to compile app gs::LouvainAppBase<_GRAPH_TYPE> on platform system: Linux machine: x86_64 platform: Linux-5.4.0-65-generic-x86_64-with-glibc2.10 uname: uname_result(system='Linux', node='a264aa579632', release='5.4.0-65-generic', version='#73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021', machine='x86_64', processor='x86_64') kernel_ver: #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021 mac_ver: ('', ('', '', ''), '') gcc_ver: b'gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0\nCopyright (C) 2019 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n' python_ver: 3.8.6
Beta Was this translation helpful? Give feedback.
All reactions