xbalgo

package
v0.0.0-...-bc7acb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dijkstra

type Dijkstra[T DijkstraVectex] struct {
	// contains filtered or unexported fields
}

func NewDijkstra

func NewDijkstra[T DijkstraVectex]() Dijkstra[T]

func (*Dijkstra[T]) Calculate

func (dijkstra *Dijkstra[T]) Calculate(source T, options *DijkstraCalculatorOptions[T]) map[T]*DijkstraRoute[T]

func (*Dijkstra[T]) Graph

func (dijkstra *Dijkstra[T]) Graph(edges ...*DijkstraEdge[T])

type DijkstraAdjacency

type DijkstraAdjacency[T DijkstraVectex] struct {
	// contains filtered or unexported fields
}

type DijkstraCalculator

type DijkstraCalculator[T DijkstraVectex] struct {
	// contains filtered or unexported fields
}

type DijkstraCalculatorOptions

type DijkstraCalculatorOptions[T DijkstraVectex] struct {
	Target      *T
	Rangefinder DijkstraRangefinder[T]
}

type DijkstraEdge

type DijkstraEdge[T DijkstraVectex] struct {
	Source   T
	Target   T
	Distance float64
}

type DijkstraGrapher

type DijkstraGrapher[T DijkstraVectex] struct {
	// contains filtered or unexported fields
}

type DijkstraHeapValue

type DijkstraHeapValue[T DijkstraVectex] struct {
	// contains filtered or unexported fields
}

func (*DijkstraHeapValue[T]) Compare

func (value *DijkstraHeapValue[T]) Compare(other *DijkstraHeapValue[T]) int

type DijkstraOperate

type DijkstraOperate = func()

type DijkstraPoint

type DijkstraPoint[T DijkstraVectex] struct {
	// contains filtered or unexported fields
}

type DijkstraRangefinder

type DijkstraRangefinder[T DijkstraVectex] interface {
	Measure(source, target T, order int, distance float64) float64
}

type DijkstraRoute

type DijkstraRoute[T DijkstraVectex] struct {
	Verticies []T
	Order     int
	Distance  float64
}

type DijkstraVectex

type DijkstraVectex = comparable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL