def _get_edata_names(self, etype=None):
        """Get the names of all edge data."""
        if etype is not None:
            etype = self.to_canonical_etype(etype)
        names = self._client.gdata_name_list()
        edata_names = []
        for name in names:
            name = parse_hetero_data_name(name)
            right_type = (
                (name.get_type() == etype) if etype is not None else True
            )
            if name.is_edge() and right_type:
                edata_names.append(name)
        return edata_names
Get the names of all edge data.
python/dgl/distributed/dist_graph.py