MCPcopy Create free account
hub / github.com/alibaba/graph-learn / node_attributes

Method node_attributes

graphlearn/python/graph.py:262–274  ·  view source on GitHub ↗
(self, node_type, attrs, n_int, n_float, n_string)

Source from the content-addressed store, hash-verified

260 return self
261
262 def node_attributes(self, node_type, attrs, n_int, n_float, n_string):
263 node_source = None
264 for node in self._node_sources:
265 if node.id_type == node_type:
266 node_source = node
267 break
268 if node_source is None:
269 raise ValueError('Node type "%s" doesn\'t exist.' % (node_type,))
270 node_source.use_attrs = ';'.join(attrs)
271 decoder = self._node_decoders[node_type]
272 self._node_decoders[node_type] = self._make_vineyard_decoder(
273 decoder.weighted, decoder.labeled, n_int, n_float, n_string)
274 return self
275
276 def edge(self,
277 source,

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80

Tested by

no test coverage detected