Registry / utility / yourbasic-graph

yourbasic-graph

JSON →
library0.0.0-20210606180040-8ecfec1c2869gogounverified

Generic implementations of basic graph algorithms with mutable and immutable graph types.

go get github.com/yourbasic/graph
INSTALL
IMPORT
SIG · YOURBASIC-GRAPH
Y
yourbasic-graph
utilitygov0.0.0-20210606180040-8ecfec1c2869
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.

graph
github.com/yourbasic/graph

Create a graph, add edges, and find the shortest path.

g := graph.New(5) g.Add(0, 1, 1) g.Add(1, 2, 1) path, _ := graph.ShortestPath(g, 0, 2) fmt.Println(path) // [0 1 2]
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210606180040-8ecfec1c2869latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
yourbasic-graph — go get yourbasic-graph · libregistry