torch_geometric.io¶
-
read_off(path)[source]¶ Reads an OFF (Object File Format) file, returning both the position of nodes and their connectivity in a
torch_geometric.data.Dataobject.- Parameters
path (str) – The path to the file.
-
write_off(data, path)[source]¶ Writes a
torch_geometric.data.Dataobject to an OFF (Object File Format) file.- Parameters
data (
torch_geometric.data.Data) – The data object.path (str) – The path to the file.