package order
import "gonum.org/v1/gonum/internal/order"
Package order provides common sorting functions.
Index ¶
- func ByID[S ~[]E, E graph.Node](n S)
- func BySliceIDs(c [][]graph.Node)
- func BySliceValues[S ~[]E, E cmp.Ordered](c []S)
- func LinesByIDs(n []graph.Line)
Functions ¶
func ByID ¶
ByID sorts a slice of graph.Node by ID.
func BySliceIDs ¶
BySliceIDs sorts a slice of []graph.Node lexically by the IDs of the []graph.Node.
func BySliceValues ¶
BySliceValues sorts a slice of []cmp.Ordered lexically by the values of the []cmp.Ordered.
func LinesByIDs ¶
LinesByIDs sort a slice of graph.LinesByIDs lexically by the From IDs, then by the To IDs, finally by the Line IDs.
Source Files ¶
doc.go order.go
- Version
- v0.15.1 (latest)
- Published
- Aug 16, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 day ago –
Tools for package owners.