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

Method add_property

python/graphscope/framework/graph_utils.py:213–215  ·  view source on GitHub ↗

prop is a str, representing name. It can optionally have a type.

(self, prop: str, dtype=None)

Source from the content-addressed store, hash-verified

211 return self.__str__()
212
213 def add_property(self, prop: str, dtype=None) -> None:
214 """prop is a str, representing name. It can optionally have a type."""
215 self.properties.append((prop, utils.unify_type(dtype)))
216
217 def add_properties(self, properties: Sequence) -> None:
218 for prop in properties:

Callers 2

__init__Method · 0.95
add_propertiesMethod · 0.95

Calls 1

appendMethod · 0.65

Tested by

no test coverage detected