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

Method get_edge_decoder

graphlearn/python/graph.py:638–646  ·  view source on GitHub ↗

Get decoder of the specific edge_type.

(self, edge_type)

Source from the content-addressed store, hash-verified

636 return decoder
637
638 def get_edge_decoder(self, edge_type):
639 """ Get decoder of the specific edge_type.
640 """
641 decoder = self._edge_decoders.get(edge_type)
642 if not decoder:
643 warnings.warn("Edge_type {} not exist in graph. Use default decoder."
644 .format(edge_type))
645 decoder = data.Decoder()
646 return decoder
647
648 def get_node_decoders(self):
649 """ Get all of the node_decoders.

Callers 3

lookup_edgesMethod · 0.95
set_pathMethod · 0.80
_get_decoderMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected