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

Class EdgeRecordKey

python/graphscope/framework/record.py:35–48  ·  view source on GitHub ↗

Unique identifier of a edge. The `eid` is required in Update and Delete, which is a system generated unsigned integer. User need to get that eid by other means such as gremlin query.

Source from the content-addressed store, hash-verified

33
34
35class EdgeRecordKey:
36 """Unique identifier of a edge.
37 The `eid` is required in Update and Delete, which is a
38 system generated unsigned integer. User need to get that eid
39 by other means such as gremlin query.
40 """
41
42 __slots__ = ["label", "src_vertex_key", "dst_vertex_key", "eid"]
43
44 def __init__(self, label, src_vertex_key, dst_vertex_key, eid=None):
45 self.label: str = label
46 self.src_vertex_key: VertexRecordKey = src_vertex_key
47 self.dst_vertex_key: VertexRecordKey = dst_vertex_key
48 self.eid: int = eid # Only required in Update and Delete.
49
50
51def to_vertex_record_key_pb(vertex_record_key: VertexRecordKey):

Callers 5

demoFunction · 0.90
load_data_of_crew_graphFunction · 0.90
prepare_edgesFunction · 0.90

Calls

no outgoing calls

Tested by 1

demoFunction · 0.72