Graph Convolutional Branch and Bound v1.0.0
A TSP solver that combines a graph convolutional network with a 1-Tree branch-and-bound.
Loading...
Searching...
No Matches
Functions
tsp_instance_reader.h File Reference

The declaration of the function to read input files. More...

#include "data_structures/graph.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.
 

Detailed Description

The declaration of the function to read input files.

Author
Lorenzo Sciandra

There are two functions to read the input files, one for the .tsp format and one for the .csv format.

Version
1.0.0 @data 2024-05-1

Repo: https://github.com/LorenzoSciandra/GraphConvolutionalBranchandBound

Definition in file tsp_instance_reader.h.

Function Documentation

◆ read_tsp_csv_file()

void read_tsp_csv_file ( Graph graph,
char *  filename 
)

Reads a .csv file and stores the data in the Graph.

Parameters
graphThe Graph where the data will be stored.
filenameThe name of the file to read.

Definition at line 79 of file tsp_instance_reader.c.

◆ read_tsp_lib_file()

void read_tsp_lib_file ( Graph graph,
char *  filename 
)

Reads a .tsp file and stores the data in the Graph.

Parameters
graphThe Graph where the data will be stored.
filenameThe name of the file to read.

Definition at line 18 of file tsp_instance_reader.c.