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

Method get_node_decoder

graphlearn/python/graph.py:628–636  ·  view source on GitHub ↗

Get decoder of the specific node_type.

(self, node_type)

Source from the content-addressed store, hash-verified

626 return self._topology
627
628 def get_node_decoder(self, node_type):
629 """ Get decoder of the specific node_type.
630 """
631 decoder = self._node_decoders.get(node_type)
632 if not decoder:
633 warnings.warn("Node_type {} not exist in graph. Use default decoder."
634 .format(node_type))
635 decoder = data.Decoder()
636 return decoder
637
638 def get_edge_decoder(self, edge_type):
639 """ Get decoder of the specific edge_type.

Callers 7

lookup_nodesMethod · 0.95
set_pathMethod · 0.80
_get_decoderMethod · 0.80
get_batchgraphMethod · 0.80
_checkMethod · 0.80
_condition_checkMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected