MCPcopy Create free account
hub / github.com/alibaba/GraphScope / Init

Method Init

python/graphscope/tests/unittest/test_udf_app.py:572–579  ·  view source on GitHub ↗
(frag, context)

Source from the content-addressed store, hash-verified

570class SSSP_PIE(AppAssets):
571 @staticmethod
572 def Init(frag, context):
573 v_label_num = frag.vertex_label_num()
574 for v_label_id in range(v_label_num):
575 nodes = frag.nodes(v_label_id)
576 context.init_value(
577 nodes, v_label_id, 1000000000.0, PIEAggregateType.kMinAggregate
578 )
579 context.register_sync_buffer(v_label_id, MessageStrategy.kSyncOnOuterVertex)
580
581 @staticmethod
582 def PEval(frag, context):

Callers

nothing calls this directly

Calls 4

init_valueMethod · 0.80
register_sync_bufferMethod · 0.80
vertex_label_numMethod · 0.45
nodesMethod · 0.45

Tested by

no test coverage detected