graph

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AStarSearch

type AStarSearch interface {
	Search(start, goal *Node) []*Node
}

func NewAStarSearch

func NewAStarSearch(heuristic func(node, goal *Node) float64) AStarSearch

NewAStarSearch returns a new a-star search instance.

type Edge

type Edge struct {
	From, To *Node
	Cost     float64
}

type Node

type Node struct {
	Edges []*Edge
	ID    int
}

Jump to

Keyboard shortcuts

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