def ndata(self):
        """Return the data view of all the nodes.

        Returns
        -------
        NodeDataView
            The data view in the distributed graph storage.
        """
        assert (
            len(self.ntypes) == 1
        ), "ndata only works for a graph with one node type."
        return NodeDataView(self)
Return the data view of all the nodes.

        Returns
        -------
        NodeDataView
            The data view in the distributed graph storage.
        
python/dgl/distributed/dist_graph.py