Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AstarResult ¶
type AstarResult[T comparable] struct { End T Cost float64 Path []T }
type Edge ¶
type Edge[T comparable] struct { To T Cost float64 }
type Graph ¶
type Graph[T comparable] map[T][]Edge[T]
func (*Graph[T]) AstarMultiple ¶
func (g *Graph[T]) AstarMultiple(start T, endList []T, h func(s T) float64) (out []AstarResult[T])
Click to show internal directories.
Click to hide internal directories.