Function tsplib::read [] [src]

pub fn read<P: AsRef<Path>>(path: P) -> Result<Instance>

Read a TSPLIB instance from path.

This funtions is implemented as

parse(BufReader::new(File::open(path)?))

Errors

This function will return an error if an IO error occurs or if the file cannot be parsed.