dgl.graphbolt.etype_str_to_tuple

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

Convert canonical etype from string to tuple.

Examples

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