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

Method add_property

python/graphscope/framework/graph_schema.py:106–114  ·  view source on GitHub ↗
(self, name, data_type, is_primary_key=False, comment="")

Source from the content-addressed store, hash-verified

104 self._comment: str = ""
105
106 def add_property(self, name, data_type, is_primary_key=False, comment=""):
107 self._prop_index[name] = len(self._props)
108 if isinstance(data_type, str):
109 data_type = unify_type(data_type)
110 self._props.append(
111 Property(name, data_type, is_primary_key, len(self._props), comment)
112 )
113 self._valid_props.append(1)
114 return self
115
116 def set_comment(self, comment):
117 self._comment = comment

Callers 7

add_common_attributesMethod · 0.45
from_dictMethod · 0.45
add_edge_labelMethod · 0.45
add_edge_propertiesMethod · 0.45
demoFunction · 0.45
create_vertex_typeMethod · 0.45
create_edge_typeMethod · 0.45

Calls 3

unify_typeFunction · 0.90
PropertyClass · 0.70
appendMethod · 0.65

Tested by 1

demoFunction · 0.36