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

Method add_sub_label

python/graphscope/framework/graph_utils.py:276–283  ·  view source on GitHub ↗
(self, sub_label)

Source from the content-addressed store, hash-verified

274 return self.__str__()
275
276 def add_sub_label(self, sub_label):
277 src = sub_label.src_label
278 dst = sub_label.dst_label
279 if (src, dst) in self.sub_labels:
280 raise ValueError(
281 f"The relationship {src} -> {self.label} <- {dst} already existed in graph."
282 )
283 self.sub_labels[(src, dst)] = sub_label
284
285 def attr(self) -> Sequence[attr_value_pb2.Chunk]:
286 chunk_list = []

Callers 2

add_edgesMethod · 0.95
process_labelFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected