astar

package
v0.0.0-...-3fbfb58 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPath

func FindPath[Node comparable](g Graph[Node], start, goal Node, d, h CostFunc[Node]) []Node

Types

type CostFunc

type CostFunc[Node any] func(a, b Node) float64

type Graph

type Graph[Node any] interface {
	Neighbors(n, p, goal Node) []Node
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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