Graph Convolutional Branch and Bound v1.0.0
A TSP solver that combines a graph convolutional network with a 1-Tree branch-and-bound.
|
This file contains the declaration of the Merge-Find Set datastructure for the Minimum Spanning Tree problem. More...
#include "graph.h"
Go to the source code of this file.
Classes | |
struct | Set |
A Set is a node in the Forest. More... | |
struct | Forest |
A Forest is a list of Sets. More... | |
Typedefs | |
typedef struct Set | Set |
A Set is a node in the Forest. | |
typedef struct Forest | Forest |
A Forest is a list of Sets. | |
Functions | |
void | create_forest (Forest *forest, const Node *nodes, unsigned short num_nodes) |
Create a new Forest with n Sets, each Set containing a Node, without constraints. | |
void | create_forest_constrained (Forest *forest, const Node *nodes, unsigned short num_nodes, unsigned short candidateId) |
Create a new Forest with n Sets, each Set containing a Node, with constraints. | |
void | merge (Set *set1, Set *set2) |
Merge two Sets in the Forest if they are not already in the same Set. | |
Set * | find (Set *set) |
Find the root of a Set. | |
void | print_forest (const Forest *forest) |
Print all the Forest. | |
This file contains the declaration of the Merge-Find Set datastructure for the Minimum Spanning Tree problem.
Repo: https://github.com/LorenzoSciandra/GraphConvolutionalBranchandBound
Definition in file mfset.h.
void create_forest_constrained | ( | Forest * | forest, |
const Node * | nodes, | ||
unsigned short | num_nodes, | ||
unsigned short | candidateId | ||
) |
Create a new Forest with n Sets, each Set containing a Node, with constraints.
The candidateId Node is not added to the Forest because for the 1-tree I need a MST on the remaining Nodes.