Registry / utility / stevenle-topsort

stevenle-topsort

JSON →
library0.2.0gogounverified

A Go library for topological sorting of directed acyclic graphs.

go get github.com/stevenle/topsort
INSTALL
IMPORT
SIG · STEVENLE-TOPSORT
S
stevenle-topsort
utilitygov0.2.0
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
github.com/stevenle/topsort

Create a graph, add edges, and perform a topological sort.

package main import ( "fmt" "github.com/stevenle/topsort" ) func main() { graph := topsort.NewGraph() graph.AddEdge("a", "b") graph.AddEdge("b", "c") sorted, err := graph.Sort() if err != nil { panic(err) } fmt.Println(sorted) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
7
Resources
stevenle-topsort — go get stevenle-topsort · libregistry