torch_geometric.io

parse_npz(f)[source]
parse_sdf(src)[source]
parse_txt_array(src, sep=None, start=0, end=None, dtype=None, device=None)[source]
read_npz(path)[source]
read_obj(in_file)[source]
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.

read_planetoid_data(folder, prefix)[source]
read_ply(path)[source]
read_sdf(path)[source]
read_tu_data(folder, prefix)[source]
read_txt_array(path, sep=None, start=0, end=None, dtype=None, device=None)[source]
write_off(data, path)[source]

Writes a torch_geometric.data.Data object to an OFF (Object File Format) file.

Parameters