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.Data
object.- Parameters
path (str) – The path to the file.
- write_off(data, path)[source]¶
Writes a
torch_geometric.data.Data
object to an OFF (Object File Format) file.- Parameters
data (
torch_geometric.data.Data
) – The data object.path (str) – The path to the file.