Graph Convolutional Branch and Bound v1.0.0
A TSP solver that combines a graph convolutional network with a 1-Tree branch-and-bound.
|
The definition of the function to read input files. More...
#include "tsp_instance_reader.h"
Go to the source code of this file.
Functions | |
void | read_tsp_lib_file (Graph *graph, char *filename) |
Reads a .tsp file and stores the data in the Graph. | |
void | read_tsp_csv_file (Graph *graph, char *filename) |
Reads a .csv file and stores the data in the Graph. | |
The definition of the function to read input files.
There are two functions to read the input files, one for the .tsp format and one for the .csv format.
Repo: https://github.com/LorenzoSciandra/GraphConvolutionalBranchandBound
Definition in file tsp_instance_reader.c.
void read_tsp_csv_file | ( | Graph * | graph, |
char * | filename | ||
) |
Reads a .csv file and stores the data in the Graph.
graph | The Graph where the data will be stored. |
filename | The name of the file to read. |
Definition at line 79 of file tsp_instance_reader.c.
void read_tsp_lib_file | ( | Graph * | graph, |
char * | filename | ||
) |
Reads a .tsp file and stores the data in the Graph.
graph | The Graph where the data will be stored. |
filename | The name of the file to read. |
Definition at line 18 of file tsp_instance_reader.c.