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")