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

Method add_properties

python/graphscope/framework/graph_utils.py:217–222  ·  view source on GitHub ↗
(self, properties: Sequence)

Source from the content-addressed store, hash-verified

215 self.properties.append((prop, utils.unify_type(dtype)))
216
217 def add_properties(self, properties: Sequence) -> None:
218 for prop in properties:
219 if isinstance(prop, str):
220 self.add_property(prop)
221 else:
222 self.add_property(prop[0], prop[1])
223
224 def get_attr(self) -> attr_value_pb2.Chunk:
225 chunk = attr_value_pb2.Chunk()

Callers 1

__init__Method · 0.95

Calls 1

add_propertyMethod · 0.95

Tested by

no test coverage detected