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

Method is_directed

graphlearn/python/graph.py:724–732  ·  view source on GitHub ↗

The specific edge_type of edges is directed or not.

(self, edge_type)

Source from the content-addressed store, hash-verified

722 return edges
723
724 def is_directed(self, edge_type):
725 """ The specific edge_type of edges is directed or not.
726 """
727 decoder = self._edge_decoders.get(edge_type)
728 if not decoder:
729 raise ValueError("edge type {} not exist in graph.".format(edge_type))
730 if edge_type in self._undirected_edges:
731 return False
732 return True
733
734 def node_sampler(self,
735 t,

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected