Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
Edge is an interface for your own implementation of an edge between two vertices in a graph.
type Node ¶
type Node interface {
Edges() []Edge
}
Node is an interface for your own implementation of a vertex in a graph.
func ShortestPath ¶
ShortestPath finds a shortest path between the start and end nodes. The two nodes' underlying values must be pointers.
Click to show internal directories.
Click to hide internal directories.