Registry / utility / philopon-go-toposort

philopon-go-toposort

JSON →
library0.0.0-20170620085441-9be86dbd762fgogounverified

A topological sorting library for Go, useful for dependency resolution and scheduling.

go get github.com/philopon/go-toposort
INSTALL
IMPORT
SIG · PHILOPON-GO-TOPOSO
P
philopon-go-toposort
utilitygov0.0.0-20170620085441-9be86dbd762f
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.

toposort
✓ github.com/philopon/go-toposort

Topologically sort nodes based on edges

package main import ( "fmt" "github.com/philopon/go-toposort" ) func main() { nodes := []string{"a", "b", "c"} edges := [][2]string{{"a", "b"}, {"b", "c"}} sorted, _ := toposort.Sort(nodes, edges) fmt.Println(sorted) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170620085441-9be86dbd762flatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
philopon-go-toposort — go get philopon-go-toposort · libregistry