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

Method _make_vineyard_decoder

graphlearn/python/graph.py:189–198  ·  view source on GitHub ↗
(self,
      weighted, labeled, n_int, n_float, n_string)

Source from the content-addressed store, hash-verified

187 return self
188
189 def _make_vineyard_decoder(self,
190 weighted, labeled, n_int, n_float, n_string):
191 attr_types = []
192 if n_int == 0 and n_float == 0 and n_string == 0:
193 attr_types = None
194 else:
195 attr_types.extend(["int"] * n_int)
196 attr_types.extend(["float"] * n_float)
197 attr_types.extend(["string"] * n_string)
198 return data.Decoder(weighted, labeled, attr_types)
199
200 def node(self,
201 source,

Callers 3

vineyardMethod · 0.95
node_attributesMethod · 0.95
edge_attributesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected