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
parse_txt_array(src, sep=None, start=0, end=None, dtype=None, device=None)[source]
read_txt_array(path, sep=None, start=0, end=None, dtype=None, device=None)[source]
read_tu_data(folder, prefix)[source]
read_planetoid_data(folder, prefix)[source]
read_ply(path)[source]
read_obj(in_file)[source]
read_sdf(path)[source]
parse_sdf(src)[source]
read_npz(path)[source]
parse_npz(f)[source]