Registry / utility / go-topsort

go-topsort

JSON →
library0.1.1gogounverified

Topological sort implementation for Go, providing a simple way to order directed acyclic graphs.

go get pault.ag/go/topsort
INSTALL
IMPORT
SIG · GO-TOPSORT
G
go-topsort
utilitygov0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

topsort
pault.ag/go/topsort

Creates a graph, adds an edge, and performs topological sort.

package main import ( "fmt" "pault.ag/go/topsort" ) func main() { graph := topsort.NewGraph() graph.AddEdge("a", "b") sorted, _ := graph.Sort() fmt.Println(sorted) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-topsort — go get go-topsort · libregistry