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 implementaion of the functions needed to compute the MST with Prim's algorithm. More...
#include "prim.h"
Go to the source code of this file.
Functions | |
void | prim (const Graph *graph, MST *mst) |
The Prim algorithm to find the Minimum Spanning Tree O(|E| + |V| log |V|) | |
The implementaion of the functions needed to compute the MST with Prim's algorithm.
This file contains the implementation of the Prim algorithm to find the Minimum Spanning Tree.
Repo: https://github.com/LorenzoSciandra/GraphConvolutionalBranchandBound
Definition in file prim.c.
The Prim algorithm to find the Minimum Spanning Tree O(|E| + |V| log |V|)
This is the implementation of the Prim algorithm with Fibonacci Heap to find the Minimum Spanning Tree. When the graph is large and complete, it is way faster than Kruskal's algorithm.