[docs]deftoTorchGraph(self,xDim,yDim,zDim,neighboring_radius=1.0):# Call the C++ toGraph functionnode_features,edge_index=self.toGraph(xDim,yDim,zDim,neighboring_radius)# Convert the node features to a torch tensorx=torch.tensor(node_features,dtype=torch.float)# Convert the edge index to a torch tensor and transpose to get shape [2, num_edges]edge_index=torch.tensor(edge_index,dtype=torch.long).t().contiguous()# Return a dictionary with the necessary components for a torch_geometric Data objectreturn{'x':x,'edge_index':edge_index}