dgl.graphbolt.etype_tuple_to_str

dgl.graphbolt.etype_tuple_to_str(c_etype)[source]

Convert canonical etype from tuple to string.

Examples

>>> c_etype = ("user", "like", "item")
>>> c_etype_str = _etype_tuple_to_str(c_etype)
>>> print(c_etype_str)
"user:like:item"