Documentation ¶
Overview ¶
Graph theory algorithms written in the Go programming language. Implements Shortest Path, Quadratic Assignment Problem, ...
Index ¶
- Constants
- Variables
- func Dijkstra(G *Matrix, i int64) (p []int64)
- func Hungarian(g *Matrix) (xy, yx []int64)
- func Load(in *os.File) (int64, *Matrix, *Matrix)
- func Perm(p Vector)
- func QAP_SolveFANT(a *Matrix, b *Matrix, p Vector, r, m int64) int64
- func QAP_SolveSA(a *Matrix, b *Matrix, p Vector, m int64) int64
- func QAP_SolveTS(a, b *Matrix, p Vector, opt, tabu_duration, aspiration, nr_iterations int64) int64
- type Matrix
- type Vector
Constants ¶
View Source
const Inf int64 = math.MaxInt64
Variables ¶
View Source
var Verbose bool
Functions ¶
func QAP_SolveFANT ¶
QAP_SolveFANT solves the Quadratic Assignment Problem using Fast Ant System.
func QAP_SolveSA ¶
QAP_SolveSA solves the Quadratic Assignment Problem using Simulated Annealing.
Types ¶
type Matrix ¶
func (*Matrix) ShortestPath ¶
ShortestPath implements the algorithm for the shortest path.
func (*Matrix) TransitiveClosure ¶
TransitiveClosure of a given graph G connects vertices u and v iff there is a path in G from u to v. Thus the transitive closure of any connected graph is complete.
Click to show internal directories.
Click to hide internal directories.